MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / updateDamageState

Method updateDamageState

Engine/source/T3D/shapeBase.cpp:1751–1762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1749}
1750
1751void ShapeBase::updateDamageState()
1752{
1753 if (mHulkThread) {
1754 F32 pos = (mDamageState == Destroyed) ? 1.0f : 0.0f;
1755 if (mShapeInstance->getPos(mHulkThread) != pos) {
1756 mShapeInstance->setPos(mHulkThread,pos);
1757
1758 if (isClientObject())
1759 mShapeInstance->animate();
1760 }
1761 }
1762}
1763
1764
1765//----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 3

setPosMethod · 0.80
getPosMethod · 0.45
animateMethod · 0.45

Tested by

no test coverage detected