Appearance
Interface: WeldJointDef
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.
Extends
Properties
bodyA
bodyA:
Body
The first attached body.
Inherited from
bodyB
bodyB:
Body
The second attached body.
Inherited from
collideConnected?
optionalcollideConnected:boolean
Set this flag to true if the attached bodies should collide.
Inherited from
dampingRatio?
optionaldampingRatio:number
The damping ratio. 0 = no damping, 1 = critical damping.
Inherited from
frequencyHz?
optionalfrequencyHz:number
The mass-spring-damper frequency in Hertz. Rotation only. Disable softness with a value of 0.
Inherited from
localAnchorA
localAnchorA:
Vec2Value
The local anchor point relative to bodyA's origin.
localAnchorB
localAnchorB:
Vec2Value
The local anchor point relative to bodyB's origin.
referenceAngle?
optionalreferenceAngle:number
The bodyB angle minus bodyA angle in the reference state (radians).
Inherited from
style?
optionalstyle:Style
Styling for dev-tools.
Inherited from
userData?
optionaluserData:any
Use this to attach application specific data to your joints.