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

Method animate

Engine/source/ts/tsAnimate.cpp:848–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846//-------------------------------------------------------------------------------------
847
848void TSShapeInstance::animate(S32 dl)
849{
850 PROFILE_SCOPE( TSShapeInstance_animate );
851
852 if (dl==-1)
853 // nothing to do
854 return;
855
856 S32 ss = mShape->details[dl].subShapeNum;
857
858 // this is a billboard detail...
859 if (ss<0)
860 return;
861
862 U32 dirtyFlags = mDirtyFlags[ss];
863
864 if (dirtyFlags & ThreadDirty)
865 sortThreads();
866
867 // animate nodes?
868 if (dirtyFlags & TransformDirty)
869 animateNodes(ss);
870
871 // animate objects?
872 if (dirtyFlags & VisDirty)
873 animateVisibility(ss);
874
875 if (dirtyFlags & FrameDirty)
876 animateFrame(ss);
877
878 if (dirtyFlags & MatFrameDirty)
879 animateMatFrame(ss);
880
881 mDirtyFlags[ss] = 0;
882}
883
884void TSShapeInstance::animateNodeSubtrees(bool forceFull)
885{

Callers 10

jquery.jsFile · 0.45
kFunction · 0.45
prepBatchRenderMethod · 0.45
castRayMethod · 0.45
renderObjectMethod · 0.45
_updateMethod · 0.45
prepRenderImageMethod · 0.45
getPolyListMethod · 0.45
renderMethod · 0.45
renderWorldMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected