Module org.dyn4j

Class ConstraintGraphNode<T extends PhysicsBody>

  • Type Parameters:
    T - the PhysicsBody type

    public final class ConstraintGraphNode<T extends PhysicsBody>
    extends Object
    Represents a node in the constraint graph.

    Each node is a PhysicsBody with the ContactConstraints and Joints being the edges to the other nodes.

    Since:
    4.0.0
    Version:
    4.0.0
    Author:
    William Bittle
    • Constructor Detail

      • ConstraintGraphNode

        public ConstraintGraphNode​(T body)
        Minimal constructor.
        Parameters:
        body - the body
    • Method Detail

      • getBody

        public T getBody()
        Returns the body at this node.
        Returns:
        T
      • getJoints

        public List<Joint<T>> getJoints()
        Returns the list of joints this body is connected with.
        Returns:
        List<Joint<T>>