| 132 | } |
| 133 | |
| 134 | PhysicsBody* 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 | |
| 147 | PhysicsBody* PhysicsBody::create(float mass) |
| 148 | { |
nothing calls this directly
no test coverage detected