- Object
-
- ConstraintGraphNode<T>
-
- Type Parameters:
T
- thePhysicsBody
type
public final class ConstraintGraphNode<T extends PhysicsBody> extends Object
Represents a node in the constraint graph.Each node is a
PhysicsBody
with theContactConstraint
s andJoint
s being the edges to the other nodes.- Since:
- 4.0.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Constructor Summary
Constructors Constructor Description ConstraintGraphNode(T body)
Minimal constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getBody()
Returns the body at this node.List<ContactConstraint<T>>
getContactConstraints()
Returns the list of contact constraints this body is connected with.List<Joint<T>>
getJoints()
Returns the list of joints this body is connected with.
-
-
-
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>>
-
getContactConstraints
public List<ContactConstraint<T>> getContactConstraints()
Returns the list of contact constraints this body is connected with.- Returns:
- List<
ContactConstraint
<T>>
-
-