| 1749 | } |
| 1750 | |
| 1751 | void 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 | //---------------------------------------------------------------------------- |