# 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 Summary

  Modifier and Type
  Method
  Description
  `PhysicsBody`
  `getBodyA()`
  `PhysicsBody`
  `getBodyB()`
  `Object`
  `getSpriteA()`
  The sprite (or other `PhysicsLinkable`) linked to body A, or null.
  `Object`
  `getSpriteB()`
  The sprite (or other `PhysicsLinkable`) linked to body B, or null.
  `boolean`
  `isTouching()`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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()