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

Method resetAnimation

Engine/source/afx/afxConstraint.cpp:1626–1649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1624}
1625
1626void afxShapeConstraint::resetAnimation(U32 tag)
1627{
1628 if (mClip_tag == 0)
1629 return;
1630
1631 if (!mShape)
1632 return;
1633
1634 if (mShape->isClientObject())
1635 {
1636 mShape->restoreAnimation(tag);
1637 }
1638 else
1639 {
1640 AIPlayer* ai_player = dynamic_cast<AIPlayer*>(mShape);
1641 if (ai_player)
1642 ai_player->restartMove(tag);
1643 else
1644 mShape->restoreAnimation(tag);
1645 }
1646
1647 if ((tag & 0x80000000) == 0 && tag == mClip_tag)
1648 mClip_tag = 0;
1649}
1650
1651U32 afxShapeConstraint::lockAnimation()
1652{

Callers

nothing calls this directly

Calls 3

isClientObjectMethod · 0.80
restartMoveMethod · 0.80
restoreAnimationMethod · 0.45

Tested by

no test coverage detected