| 1888 | } |
| 1889 | |
| 1890 | void 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 | //---------------------------------------------------------------------------- |