| 1682 | } |
| 1683 | |
| 1684 | static inline Point3 GetPositionFromArgumentIndex(lua_State* L, int index) |
| 1685 | { |
| 1686 | Vector4* v4; |
| 1687 | if ((v4 = dmScript::ToVector4(L, index))) |
| 1688 | { |
| 1689 | return Point3(v4->getXYZ()); |
| 1690 | } |
| 1691 | |
| 1692 | Vector3* v3 = dmScript::CheckVector3(L, index); |
| 1693 | return Point3(*v3); |
| 1694 | } |
| 1695 | |
| 1696 | /*# creates a new box node |
| 1697 | * Dynamically create a new box node. |
no test coverage detected