Package org.jbox2d.dynamics.joints
Class JointDef
java.lang.Object
org.jbox2d.dynamics.joints.JointDef
- Direct Known Subclasses:
ConstantVolumeJointDef
,DistanceJointDef
,FrictionJointDef
,GearJointDef
,MouseJointDef
,PrismaticJointDef
,PulleyJointDef
,RevoluteJointDef
,RopeJointDef
,WeldJointDef
,WheelJointDef
public class JointDef
extends java.lang.Object
Joint definitions are used to construct joints.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe first attached body.The second attached body.boolean
Set this flag to true if the attached bodies should collide.The joint type is set automatically for concrete joint types.java.lang.Object
Use this to attach application specific data to your joints. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
type
The joint type is set automatically for concrete joint types. -
userData
public java.lang.Object userDataUse this to attach application specific data to your joints. -
bodyA
The first attached body. -
bodyB
The second attached body. -
collideConnected
public boolean collideConnectedSet this flag to true if the attached bodies should collide.
-
-
Constructor Details
-
JointDef
public JointDef()
-