MCPcopy Create free account
hub / github.com/axmolengine/axmol / onEnter

Method onEnter

core/physics3d/Physics3DComponent.cpp:122–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void Physics3DComponent::onEnter()
123{
124 Component::onEnter();
125
126 if (_physics3DObj->getPhysicsWorld() == nullptr && _owner)
127 {
128 auto scene = _owner->getScene();
129 if (scene)
130 addToPhysicsWorld(scene->getPhysics3DWorld());
131 }
132}
133
134void Physics3DComponent::onExit()
135{

Callers

nothing calls this directly

Calls 1

getSceneMethod · 0.80

Tested by

no test coverage detected