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

Method onImageAnimThreadUpdate

Engine/source/T3D/player.cpp:4572–4586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4570}
4571
4572void Player::onImageAnimThreadUpdate(U32 imageSlot, S32 imageShapeIndex, F32 dt)
4573{
4574 if (!mShapeFPInstance[imageSlot])
4575 return;
4576
4577 if (mShapeFPAmbientThread[imageSlot] && mShapeFPAmbientThread[imageSlot]->hasSequence())
4578 {
4579 mShapeFPInstance[imageSlot]->advanceTime(dt,mShapeFPAmbientThread[imageSlot]);
4580 }
4581
4582 if (mShapeFPAnimThread[imageSlot] && mShapeFPAnimThread[imageSlot]->hasSequence())
4583 {
4584 mShapeFPInstance[imageSlot]->advanceTime(dt,mShapeFPAnimThread[imageSlot]);
4585 }
4586}
4587
4588void Player::onUnmount( SceneObject *obj, S32 node )
4589{

Callers

nothing calls this directly

Calls 2

hasSequenceMethod · 0.80
advanceTimeMethod · 0.45

Tested by

no test coverage detected