mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Added a setPosition function.
This commit is contained in:
parent
e02e542717
commit
19f91fee2b
1 changed files with 7 additions and 0 deletions
|
|
@ -1314,6 +1314,13 @@ DefineEngineMethod( SceneObject, getPosition, Point3F, (),,
|
|||
return object->getTransform().getPosition();
|
||||
}
|
||||
|
||||
DefineEngineMethod( SceneObject, setPosition, void, (Point3F pos),,
|
||||
"Set the object's world position.\n"
|
||||
"@param pos the new world position of the object\n" )
|
||||
{
|
||||
return object->setPosition(pos);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
DefineEngineMethod( SceneObject, getEulerRotation, Point3F, (),,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue