# Class ContactEdge

java.lang.Object
com.codename1.gaming.physics.box2d.dynamics.contacts.ContactEdge

public class ContactEdge extends Object
A contact edge is used to connect bodies and contacts together in a contact graph where each body is a node and each contact is an edge. A contact edge belongs to a doubly linked list maintained in each attached body. Each contact has two contact nodes, one for each attached body.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `Contact`
  `contact`
  the contact
  `ContactEdge`
  `next`
  the next contact edge in the body's contact list
  `Body`
  `other`
  provides quick access to the other body attached.
  `ContactEdge`
  `prev`
  the previous contact edge in the body's contact list

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ContactEdge()`

- ## Method Summary

  ### Methods inherited from class Object

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

- ## Field Details

  - ### other

    public Body other
    provides quick access to the other body attached.

  - ### contact

    public Contact contact
    the contact

  - ### prev

    public ContactEdge prev
    the previous contact edge in the body's contact list

  - ### next

    public ContactEdge next
    the next contact edge in the body's contact list

- ## Constructor Details

  - ### ContactEdge

    public ContactEdge()