API Documentation for:
Show:

b2JointDef Class

Defined in: b2JointDef:17
Module: Joints

Joint definitions are used to construct joints.

Constructor

b2JointDef

(
  • [type=b2Joint.e_unknownJoint]
)

Defined in b2JointDef:17

Parameters:

  • [type=b2Joint.e_unknownJoint] Int= optional

Item Index

Properties

Properties

bodyA

B2Body | Null public

Defined in bodyA:70

The first attached body.

Default: null

bodyB

B2Body | Null public

Defined in bodyB:80

The second attached body.

Default: null

collideConnected

Boolean public

Defined in collideConnected:90

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

Default: false

type

Int public

Defined in type:43

The joint type is set automatically for native joint types.

userData

| Null public

Defined in userData:52

Application specific data.

NOTE: Using the addPhysicsJS framework m_userData is managed for you extending either a createjs.container or createjs.movieClip class.

Default: null