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.ObjectJoint definitions are used to construct joints.
-
-
Field Summary
Fields Modifier and Type Field Description BodybodyAThe first attached body.BodybodyBThe second attached body.booleancollideConnectedSet this flag to true if the attached bodies should collide.JointTypetypeThe joint type is set automatically for concrete joint types.java.lang.ObjectuserDataUse this to attach application specific data to your joints.
-
Constructor Summary
Constructors Constructor Description JointDef()
-
-
-
Field Detail
-
type
public JointType type
The joint type is set automatically for concrete joint types.
-
userData
public java.lang.Object userData
Use this to attach application specific data to your joints.
-
bodyA
public Body bodyA
The first attached body.
-
bodyB
public Body bodyB
The second attached body.
-
collideConnected
public boolean collideConnected
Set this flag to true if the attached bodies should collide.
-
-