Return a pointer to the second body in contact
| 52 | |
| 53 | // Return a pointer to the second body in contact |
| 54 | Body* CollisionCallback::ContactPair::getBody2() const { |
| 55 | return static_cast<Body*>(mWorld.mBodyComponents.getBody(mContactPair.body2Entity)); |
| 56 | } |
| 57 | |
| 58 | // Return a pointer to the first collider in contact (in body 1) |
| 59 | Collider* CollisionCallback::ContactPair::getCollider1() const { |