b2MotorJointDef Class
Motor joint definition.
Constructor
b2MotorJointDef
()
Item Index
Methods
Methods
initVelocityConstraints
(
Void
public
-
bodyA
-
bodyB
Parameters:
-
bodyA
B2Body -
bodyB
B2Body
Returns:
Void:
Properties
angularOffset
Float
public
The bodyB angle minus bodyA angle in radians.
Default: 0.0
bodyA
B2Body | Null
public
The first attached body.
Default: null
bodyB
B2Body | Null
public
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
Position correction factor in the range [0,1].
Default: 0.0
linearOffset
B2Vec2
public
Position of bodyB minus the position of bodyA, in bodyA's frame, in meters.
localAxisA
Float
public
The maximum motor force in N.
Default: 0.0
maxTorque
Float
public
The maximum motor torque in N-m.
Default: 0.0
type
Int
public
Default: b2Joint.e_motorJoint
userData
| Null
public
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