b2FrictionJointDef Class
Friction joint definition.
Class constructor function
Constructor
b2FrictionJointDef
()
Methods
initialize
(
Void
public
-
bodyA
-
bodyB
-
anchor
Parameters:
-
bodyA
B2Body -
bodyB
B2Body -
anchor
B2Vec2
Returns:
Void:
Properties
localAnchorA
B2Vec2
public
The local anchor point relative to bodyA's origin.
localAnchorB
B2Vec2
public
The local anchor point relative to bodyB's origin.
maxForce
Float
public
The maximum friction force in N.
Default: 0.0
maxTorque
Float
public
The maximum friction torque in N-m.
Default: 0.0
type
Int
public
Default: b2Joint.e_frictionJoint