b2WeldJointDef Class
Weld joint definition. You need to specify local anchor points where they are attached and the relative body angle. The position of the anchor points is important for computing the reaction torque.
Constructor
b2WeldJointDef
()
Item Index
Methods
Methods
initialize
(
Void
public
-
bodyA
-
bodyB
-
anchor
Parameters:
-
bodyA
B2Body -
bodyB
B2Body -
anchor
B2Vec2
Returns:
Void:
Properties
bodyA
B2Body | Null
public
bodyB
B2Body | Null
public
dampingRatio
Float
public
The damping ratio. 0 = no damping, 1 = critical damping.
Default: 0.0
frequencyHz
Float
public
The mass-spring-damper frequency in Hertz. Rotation only. Disable softness with a value of 0.
Default: 0.0
localAnchorA
B2Vec2
public
The local anchor point relative to bodyA's origin.
localAnchorB
B2Vec2
public
The local anchor point relative to bodyB's origin.
referenceAngle
Float
public
The bodyB angle minus bodyA angle in the reference state (radians).
Default: 0.0