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

Method setTransform

Engine/source/T3D/tsStatic.cpp:922–941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

920}
921
922void TSStatic::setTransform(const MatrixF& mat)
923{
924 Parent::setTransform(mat);
925 if (!isMounted())
926 setMaskBits(TransformMask);
927
928 if (mPhysicsRep)
929 mPhysicsRep->setTransform(mat);
930
931 // Accumulation
932 if (isClientObject() && mShapeInstance)
933 {
934 if (mShapeInstance->hasAccumulation())
935 AccumulationVolume::updateObject(this);
936 }
937
938 // Since this is a static it's render transform changes 1
939 // to 1 with it's collision transform... no interpolation.
940 setRenderTransform(mat);
941}
942
943U32 TSStatic::packUpdate(NetConnection* con, U32 mask, BitStream* stream)
944{

Callers 5

_updatePhysicsMethod · 0.45
prepRenderImageMethod · 0.45
buildPolyListMethod · 0.45
buildExportPolyListMethod · 0.45
getPolyListMethod · 0.45

Calls 1

hasAccumulationMethod · 0.45

Tested by

no test coverage detected