API Documentation for:
Show:

b2WeldJointDef Class

Extends B2JointDef
Defined in: b2WeldJointDef:17
Module: Joints

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

()

Defined in b2WeldJointDef:17

Methods

initialize

(
  • bodyA
  • bodyB
  • anchor
)
Void public

Defined in initialize:153

Parameters:

  • bodyA B2Body
  • bodyB B2Body
  • anchor B2Vec2

Returns:

Void:

Properties

bodyA

B2Body | Null public

Defined in bodyA:78

bodyB

B2Body | Null public

Defined in bodyB:85

dampingRatio

Float public

Defined in dampingRatio:114

The damping ratio. 0 = no damping, 1 = critical damping.

Default: 0.0

frequencyHz

Float public

Defined in frequencyHz:103

The mass-spring-damper frequency in Hertz. Rotation only. Disable softness with a value of 0.

Default: 0.0

localAnchorA

B2Vec2 public

Defined in localAnchorA:51

The local anchor point relative to bodyA's origin.

localAnchorB

B2Vec2 public

Defined in localAnchorB:60

The local anchor point relative to bodyB's origin.

referenceAngle

Float public

Defined in referenceAngle:92

The bodyB angle minus bodyA angle in the reference state (radians).

Default: 0.0

type

Int b2WeldJoint public

Defined in type:71