| 405 | } |
| 406 | |
| 407 | void RigidBody::UpdateScale() |
| 408 | { |
| 409 | const Float3 scale = GetScale(); |
| 410 | if (_cachedScale == scale) |
| 411 | return; |
| 412 | _cachedScale = scale; |
| 413 | |
| 414 | // Check if update mass |
| 415 | if (_updateMassWhenScaleChanges && !_overrideMass) |
| 416 | UpdateMass(); |
| 417 | } |
| 418 | |
| 419 | void RigidBody::Serialize(SerializeStream& stream, const void* otherObj) |
| 420 | { |
nothing calls this directly
no test coverage detected