Skip to main content

JointDef

Description:

  A record that defines the properties of a joint to be created.

Class Object: JointDef Class.

Inherits from: Object.

center

Type: Field.

Description:

  The center point of the joint, in local coordinates.

Signature:

center: Vec2

position

Type: Field.

Description:

  The position of the joint, in world coordinates.

Signature:

position: Vec2

angle

Type: Field.

Description:

  The angle of the joint, in degrees.

Signature:

angle: number