Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

Index

Constructors

Properties

bodyA: b2Body

The first attached body.

bodyB: b2Body

The second attached body.

collideConnected: boolean

Set this flag to true if the attached bodies should collide.

localAnchorA: b2Vec2

The local anchor point relative to body1's origin.

localAnchorB: b2Vec2

The local anchor point relative to body2's origin.

referenceAngle: number

The body2 angle minus body1 angle in the reference state (radians).

type: number

The joint type is set automatically for concrete joint types.

userData: any

Use this to attach application specific data to your joints.

Methods

Generated using TypeDoc