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

Method setTransform

Engine/source/T3D/physics/physicsShape.cpp:820–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

818}
819
820void PhysicsShape::setTransform( const MatrixF &newMat )
821{
822 Parent::setTransform( newMat );
823
824 // This is only called to set an absolute position
825 // so we discard the delta state.
826 mState.position = getPosition();
827 mState.orientation.set( newMat );
828 mRenderState[0] = mRenderState[1] = mState;
829 setMaskBits( StateMask );
830
831 if ( mPhysicsRep )
832 mPhysicsRep->setTransform( newMat );
833}
834
835void PhysicsShape::setScale( const VectorF &scale )
836{

Callers 5

_createShapeMethod · 0.45
_onPhysicsResetMethod · 0.45
destroyMethod · 0.45
createMethod · 0.45
_createFragmentsMethod · 0.45

Calls 2

getPositionFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected