| 557 | } |
| 558 | |
| 559 | void RigidBody::EndPlay() |
| 560 | { |
| 561 | // Base |
| 562 | Actor::EndPlay(); |
| 563 | |
| 564 | if (_actor) |
| 565 | { |
| 566 | // Remove actor |
| 567 | void* scene = GetPhysicsScene()->GetPhysicsScene(); |
| 568 | PhysicsBackend::RemoveSceneActor(scene, _actor); |
| 569 | PhysicsBackend::DestroyActor(_actor); |
| 570 | _actor = nullptr; |
| 571 | } |
| 572 | } |
| 573 | |
| 574 | void RigidBody::OnActiveInTreeChanged() |
| 575 | { |
nothing calls this directly
no test coverage detected