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

Method addToPhysicsWorld

core/physics/PhysicsBody.cpp:1005–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1003}
1004
1005void PhysicsBody::addToPhysicsWorld()
1006{
1007 if (_owner)
1008 {
1009 auto scene = _owner->getScene();
1010 if (scene)
1011 scene->getPhysicsWorld()->addBody(this);
1012 }
1013}
1014
1015void PhysicsBody::removeFromPhysicsWorld()
1016{

Calls 2

getSceneMethod · 0.80
addBodyMethod · 0.80

Tested by

no test coverage detected