Package org.jbox2d.dynamics.joints

Examples of org.jbox2d.dynamics.joints.JointEdge


    if (isLocked()) {
      return;
    }

    // Delete the attached joints.
    JointEdge je = body.m_jointList;
    while (je != null) {
      JointEdge je0 = je;
      je = je.next;
      if (m_destructionListener != null) {
        m_destructionListener.sayGoodbye(je0.joint);
      }
View Full Code Here


    if (isLocked()) {
      return;
    }

    // Delete the attached joints.
    JointEdge je = body.m_jointList;
    while (je != null) {
      JointEdge je0 = je;
      je = je.next;
      if (m_destructionListener != null) {
        m_destructionListener.sayGoodbye(je0.joint);
      }
View Full Code Here

  /** Destroy a rigid body given a definition. No reference to the definition is retained. This function is locked during
   * callbacks.
   * @warning This automatically deletes all associated shapes and joints.
   * @warning This function is locked during callbacks. */
  public void destroyBody (Body body) {
    JointEdge jointEdge = body.body.getJointList();
    while (jointEdge != null) {
      world.destroyJoint(jointEdge.joint);
      joints.remove(jointEdge.joint);
      jointEdge = jointEdge.next;
    }
View Full Code Here

    if (isLocked()) {
      return;
    }
   
    // Delete the attached joints.
    JointEdge je = body.m_jointList;
    while (je != null) {
      JointEdge je0 = je;
      je = je.next;
      if (m_destructionListener != null) {
        m_destructionListener.sayGoodbye(je0.joint);
      }
     
View Full Code Here

    world.destroyBody(body.body);
    bodies.remove(body.body);
    for (Fixture fixture : body.fixtures) {
      fixtures.remove(fixture.fixture);
    }
    JointEdge jointEdge = body.body.getJointList();
    while (jointEdge != null) {
      joints.remove(jointEdge.joint);
    }
  }
View Full Code Here

    if (isLocked()) {
      return;
    }

    // Delete the attached joints.
    JointEdge je = body.m_jointList;
    while (je != null) {
      JointEdge je0 = je;
      je = je.next;
      if (m_destructionListener != null) {
        m_destructionListener.sayGoodbye(je0.joint);
      }
View Full Code Here

    world.destroyBody(body.body);
    bodies.remove(body.body);
    for (Fixture fixture : body.fixtures) {
      fixtures.remove(fixture.fixture);
    }
    JointEdge jointEdge = body.body.getJointList();
    while (jointEdge != null) {
      joints.remove(jointEdge.joint);
    }
  }
View Full Code Here

    if (isLocked()) {
      return;
    }

    // Delete the attached joints.
    JointEdge je = body.m_jointList;
    while (je != null) {
      JointEdge je0 = je;
      je = je.next;
      if (m_destructionListener != null) {
        m_destructionListener.sayGoodbye(je0.joint);
      }
View Full Code Here

    world.destroyBody(body.body);
    bodies.remove(body.body);
    for (Fixture fixture : body.fixtures) {
      fixtures.remove(fixture.fixture);
    }
    JointEdge jointEdge = body.body.getJointList();
    while (jointEdge != null) {
      joints.remove(jointEdge.joint);
    }
  }
View Full Code Here

TOP

Related Classes of org.jbox2d.dynamics.joints.JointEdge

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.