| 265 | } |
| 266 | |
| 267 | PhysicsBody* PhysicsBody::createEdgePolygon(const Vec2* points, |
| 268 | int count, |
| 269 | const PhysicsMaterial& material, |
| 270 | float border /* = 1*/) |
| 271 | { |
| 272 | PhysicsBody* body = new PhysicsBody(); |
| 273 | if (body->init()) |
| 274 | { |
| 275 | body->addShape(PhysicsShapeEdgePolygon::create(points, count, material, border)); |
| 276 | body->setDynamic(false); |
| 277 | body->autorelease(); |
| 278 | return body; |
| 279 | } |
| 280 | |
| 281 | AX_SAFE_DELETE(body); |
| 282 | |
| 283 | return nullptr; |
| 284 | } |
| 285 | |
| 286 | PhysicsBody* PhysicsBody::createEdgeChain(const Vec2* points, |
| 287 | int count, |
nothing calls this directly
no test coverage detected