Class PhysicsContact

java.lang.Object
com.codename1.gaming.physics.PhysicsContact

public class PhysicsContact extends Object
A contact between two bodies, passed to a ContactListener.
  • 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()