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

Method updateDamageState

Engine/source/T3D/shapeBase.cpp:1890–1901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1888}
1889
1890void ShapeBase::updateDamageState()
1891{
1892 if (mHulkThread) {
1893 F32 pos = (mDamageState == Destroyed) ? 1.0f : 0.0f;
1894 if (mShapeInstance->getPos(mHulkThread) != pos) {
1895 mShapeInstance->setPos(mHulkThread,pos);
1896
1897 if (isClientObject())
1898 mShapeInstance->animate();
1899 }
1900 }
1901}
1902
1903
1904//----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 3

setPosMethod · 0.80
getPosMethod · 0.45
animateMethod · 0.45

Tested by

no test coverage detected