| 112 | bool PhysicsWorldCallback::continues = true; |
| 113 | |
| 114 | cpBool PhysicsWorldCallback::collisionBeginCallbackFunc(cpArbiter* arb, struct cpSpace* /*space*/, PhysicsWorld* world) |
| 115 | { |
| 116 | CP_ARBITER_GET_SHAPES(arb, a, b); |
| 117 | |
| 118 | PhysicsShape* shapeA = static_cast<PhysicsShape*>(cpShapeGetUserData(a)); |
| 119 | PhysicsShape* shapeB = static_cast<PhysicsShape*>(cpShapeGetUserData(b)); |
| 120 | AX_ASSERT(shapeA != nullptr && shapeB != nullptr); |
| 121 | |
| 122 | auto contact = PhysicsContact::construct(shapeA, shapeB); |
| 123 | cpArbiterSetUserData(arb, contact); |
| 124 | contact->_contactInfo = arb; |
| 125 | |
| 126 | return world->collisionBeginCallback(*contact); |
| 127 | } |
| 128 | |
| 129 | cpBool PhysicsWorldCallback::collisionPreSolveCallbackFunc(cpArbiter* arb, cpSpace* /*space*/, PhysicsWorld* world) |
| 130 | { |
nothing calls this directly
no test coverage detected