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

Method create

core/physics/PhysicsBody.cpp:134–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134PhysicsBody* PhysicsBody::create()
135{
136 PhysicsBody* body = new PhysicsBody();
137 if (body->init())
138 {
139 body->autorelease();
140 return body;
141 }
142
143 AX_SAFE_DELETE(body);
144 return nullptr;
145}
146
147PhysicsBody* PhysicsBody::create(float mass)
148{

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected