MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / getTransform

Method getTransform

Engine/source/T3D/entity.cpp:840–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838}
839
840MatrixF Entity::getTransform()
841{
842 if (isMounted())
843 {
844 MatrixF mat;
845
846 //Use transform from mount
847 mMount.object->getMountTransform(mMount.node, mMount.xfm, &mat);
848
849 Point3F transPos = mat.getPosition() + mPos;
850
851 mat.mul(mRot.asMatrixF());
852
853 mat.setPosition(transPos);
854
855 return mat;
856 }
857 else
858 {
859 return Parent::getTransform();
860 }
861}
862
863void Entity::setMountOffset(Point3F posOffset)
864{

Callers 3

setTransformMethod · 0.45
setRenderTransformMethod · 0.45
addObjectMethod · 0.45

Calls 5

asMatrixFMethod · 0.80
getMountTransformMethod · 0.45
getPositionMethod · 0.45
mulMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected