PackageBox2D.Dynamics.Joints
Classpublic class b2JointDef
Subclassesb2DistanceJointDef, b2GearJointDef, b2LineJointDef, b2MouseJointDef, b2PrismaticJointDef, b2PulleyJointDef, b2RevoluteJointDef
Sourceb2JointDef.as

Joint definitions are used to construct joints.

See also

b2Joint


Public Properties
 PropertyDefined by
  body1 : b2Body
The first attached body.
b2JointDef
  body2 : b2Body
The second attached body.
b2JointDef
  collideConnected : Boolean
Set this flag to true if the attached bodies should collide.
b2JointDef
  type : int
The joint type is set automatically for concrete joint types.
b2JointDef
  userData : *
Use this to attach application specific data to your joints.
b2JointDef
Public Methods
 MethodDefined by
  
b2JointDef
Property detail
body1property
public var body1:b2Body

The first attached body.

body2property 
public var body2:b2Body

The second attached body.

collideConnectedproperty 
public var collideConnected:Boolean

Set this flag to true if the attached bodies should collide.

typeproperty 
public var type:int

The joint type is set automatically for concrete joint types.

userDataproperty 
public var userData:*

Use this to attach application specific data to your joints.

Constructor detail
b2JointDef()constructor
public function b2JointDef()