MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setPosition

Method setPosition

Engine/source/scene/sceneObject.cpp:1083–1090  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1081//-----------------------------------------------------------------------------
1082
1083void SceneObject::setPosition(const Point3F &pos)
1084{
1085 AssertFatal( !mIsNaN( pos ), "SceneObject::setPosition() - The position is NaN!" );
1086
1087 MatrixF xform = mObjToWorld;
1088 xform.setColumn(3, pos);
1089 setTransform(xform);
1090}
1091
1092//-----------------------------------------------------------------------------
1093

Callers 5

updateFaceMethod · 0.45
getCameraReflectionMethod · 0.45
getMountTransformMethod · 0.45
sceneObject.cppFile · 0.45

Calls 2

setColumnMethod · 0.80
mIsNaNFunction · 0.50

Tested by

no test coverage detected