| 183 | } |
| 184 | |
| 185 | PhysicsBody* PhysicsBody::createCircle(float radius, const PhysicsMaterial& material, const Vec2& offset) |
| 186 | { |
| 187 | PhysicsBody* body = new PhysicsBody(); |
| 188 | if (body->init()) |
| 189 | { |
| 190 | body->addShape(PhysicsShapeCircle::create(radius, material, offset)); |
| 191 | body->autorelease(); |
| 192 | return body; |
| 193 | } |
| 194 | |
| 195 | AX_SAFE_DELETE(body); |
| 196 | return nullptr; |
| 197 | } |
| 198 | |
| 199 | PhysicsBody* PhysicsBody::createBox(const Vec2& size, const PhysicsMaterial& material, const Vec2& offset) |
| 200 | { |
nothing calls this directly
no test coverage detected