Skip to content

Commit

Permalink
Merge pull request #871 from eightyeight/set-position
Browse files Browse the repository at this point in the history
Added a setPosition function
  • Loading branch information
crabmusket committed Oct 28, 2014
2 parents e02e542 + 19f91fe commit 889d512
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Engine/source/scene/sceneObject.cpp
Expand Up @@ -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, (),,
Expand Down

0 comments on commit 889d512

Please sign in to comment.