public class PhysicsContact
- Object
- PhysicsContact
A contact between two bodies, passed to a
ContactListener.Methods
public PhysicsBody getBodyA() | |
public PhysicsBody getBodyB() | |
public Object getSpriteA() | The sprite (or other PhysicsLinkable) linked to body A, or null. |
public Object getSpriteB() | The sprite (or other PhysicsLinkable) linked to body B, or null. |
public boolean isTouching() |
Inherited methods
Method details
getBodyA
public PhysicsBody getBodyA()getBodyB
public PhysicsBody getBodyB()getSpriteA
public Object getSpriteA()The sprite (or other
PhysicsLinkable) linked to body A, or null.getSpriteB
public Object getSpriteB()The sprite (or other
PhysicsLinkable) linked to body B, or null.isTouching
public boolean isTouching()