API Documentation for:
Show:

b2MotorJointDef Class

Extends B2JointDef
Defined in: b2MotorJointDef:17
Module: Joints

Motor joint definition.

Constructor

b2MotorJointDef

()

Defined in b2MotorJointDef:17

Methods

initVelocityConstraints

(
  • bodyA
  • bodyB
)
Void public

Parameters:

  • bodyA B2Body
  • bodyB B2Body

Returns:

Void:

Properties

angularOffset

Float public

Defined in angularOffset:60

The bodyB angle minus bodyA angle in radians.

Default: 0.0

bodyA

B2Body | Null public

Inherited from b2JointDef: bodyA:70

The first attached body.

Default: null

bodyB

B2Body | Null public

Inherited from b2JointDef: bodyB:80

The second attached body.

Default: null

collideConnected

Boolean public

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

Default: false

correctionFactor

Float public

Defined in correctionFactor:98

Position correction factor in the range [0,1].

Default: 0.0

linearOffset

B2Vec2 public

Defined in linearOffset:48

Position of bodyB minus the position of bodyA, in bodyA's frame, in meters.

localAxisA

Float public

Defined in localAxisA:70

The maximum motor force in N.

Default: 0.0

maxTorque

Float public

Defined in maxTorque:88

The maximum motor torque in N-m.

Default: 0.0

type

Int public

Inherited from b2JointDef but overwritten in type:80

Default: b2Joint.e_motorJoint

userData

| Null public

Inherited from b2JointDef: 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