content: /*
   * FXGL - JavaFX Game Library. The MIT License (MIT).
   * Copyright (c) AlmasB (almaslvl@gmail.com).
   * See LICENSE for details.
   */
  package com.almasb.fxgl.physics.box2d.dynamics.contacts;
  
  import com.almasb.fxgl.physics.box2d.dynamics.Body;
  
  /**
   * 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.
   *
   * @author daniel
   */
  public class ContactEdge {
  
      /**
       * provides quick access to the other body attached.
       */
      public Body other = null;
  
      /**
       * the contact
       */
      public Contact contact = null;
  
      /**
       * the previous contact edge in the body's contact list
       */
      public ContactEdge prev = null;
  
      /**
       * the next contact edge in the body's contact list
       */
      public ContactEdge next = null;
  
      void reset() {
          other = null;
          contact = null;
          prev = null;
          next = null;
      }
  }