| 591 | } |
| 592 | |
| 593 | void RigidBody::OnTransformChanged() |
| 594 | { |
| 595 | // Base |
| 596 | Actor::OnTransformChanged(); |
| 597 | |
| 598 | // Update physics is not during physics state synchronization |
| 599 | if (!_isUpdatingTransform && _actor) |
| 600 | { |
| 601 | const bool kinematic = GetIsKinematic() && GetEnableSimulation(); |
| 602 | PhysicsBackend::SetRigidActorPose(_actor, _transform.Translation, _transform.Orientation, kinematic, true); |
| 603 | UpdateScale(); |
| 604 | } |
| 605 | |
| 606 | UpdateBounds(); |
| 607 | } |
| 608 | |
| 609 | void RigidBody::OnPhysicsSceneChanged(PhysicsScene* previous) |
| 610 | { |
nothing calls this directly
no test coverage detected