| 61 | } |
| 62 | |
| 63 | void RigidBody::SetEnableSimulation(bool value) |
| 64 | { |
| 65 | if (value == GetEnableSimulation()) |
| 66 | return; |
| 67 | _enableSimulation = value; |
| 68 | if (_actor) |
| 69 | { |
| 70 | const bool isActive = _enableSimulation && IsActiveInHierarchy(); |
| 71 | PhysicsBackend::SetActorFlag(_actor, PhysicsBackend::ActorFlags::NoSimulation, !isActive); |
| 72 | if (isActive && GetStartAwake()) |
| 73 | WakeUp(); |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | void RigidBody::SetUseCCD(bool value) |
| 78 | { |
nothing calls this directly
no test coverage detected