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.
  */
 Object 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 #

bodyA

Body bodyB #

bodyB

bool collideConnected #

collideConnected

int type #

type

Object userData #

userData