Dart Documentationbox2dJointDef

JointDef class

class JointDef {
 JointDef() :
   type = JointType.UNKNOWN,
   userData = null,
   bodyA = null,
   bodyB = null,
   collideConnected = false { }

 /**
  * The joint type is set automatically for concrete joint types.
  */
 int type;

 /**
  * Use this to attach application specific data to your joints.
  */
 dynamic userData;

 /**
  * The first attached body.
  */
 Body bodyA;

 /**
  * The second attached body.
  */
 Body bodyB;

 /**
  * Set this flag to true if the attached bodies should collide.
  */
 bool collideConnected;
}

Subclasses

ConstantVolumeJointDef, DistanceJointDef, FrictionJointDef, RevoluteJointDef

Constructors

new JointDef() #

JointDef() :
 type = JointType.UNKNOWN,
 userData = null,
 bodyA = null,
 bodyB = null,
 collideConnected = false { }

Properties

Body bodyA #

The first attached body.

Body bodyA

Body bodyB #

The second attached body.

Body bodyB

bool collideConnected #

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

bool collideConnected

int type #

The joint type is set automatically for concrete joint types.

int type

var userData #

Use this to attach application specific data to your joints.

dynamic userData