All Implemented Interfaces:
ODELinkAttachListener, ODELinkDetachListener, PoseChangeListener, EventListener
Direct Known Subclasses:
ODEAngularMotor, ODEBallSocket, ODEHinge, ODESlider

public class ODEJoint extends ODENode implements ODELinkDetachListener, ODELinkAttachListener
A joint between one or two ODEBody. If only one body is connected then the joint is attached to the world.
  • Constructor Details

    • ODEJoint

      public ODEJoint()
    • ODEJoint

      public ODEJoint(String name)
  • Method Details

    • getComponents

      public void getComponents(List<JPanel> list)
      Description copied from class: Pose
      Build a Swing Component that represents this Node.
      Overrides:
      getComponents in class Pose
      Parameters:
      list - the list to add components to.
    • getPartA

      public NodePath<ODEBody> getPartA()
    • getPartB

      public NodePath<ODEBody> getPartB()
    • setPartA

      public void setPartA(ODEBody subject)
    • setPartB

      public void setPartB(ODEBody subject)
    • toJSON

      public org.json.JSONObject toJSON()
      Description copied from class: Node
      Serialize this node and its children to a JSON object and its children. Classes that override this method should call super.toJSON() first, then add to the object returned.
      Overrides:
      toJSON in class Pose
      Returns:
      the JSON object.
    • fromJSON

      public void fromJSON(org.json.JSONObject from)
      Description copied from class: Node
      Deserialize this node and its children from a JSON object and its children. Classes that override this method should call super.fromJSON(). When they do it will trigger the creation of child nodes. The child nodes will then call their own fromJSON() methods.
      Overrides:
      fromJSON in class ODENode
      Parameters:
      from - the JSON object to read from.
    • linkAttached

      public void linkAttached(ODENode body)
      Specified by:
      linkAttached in interface ODELinkAttachListener
    • linkDetached

      public void linkDetached(ODENode body)
      Specified by:
      linkDetached in interface ODELinkDetachListener