MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / EndPlay

Method EndPlay

Source/Engine/Physics/Actors/RigidBody.cpp:559–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559void 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
574void RigidBody::OnActiveInTreeChanged()
575{

Callers

nothing calls this directly

Calls 2

GetPhysicsSceneFunction · 0.85
GetPhysicsSceneMethod · 0.80

Tested by

no test coverage detected