Skip to main content

Interface: RevoluteJointOptions

Defined in: physics/joints/revolute-joint.ts:7

Options for creating a RevoluteJoint.

Properties

anchorA?

optional anchorA?: Vector2

Defined in: physics/joints/revolute-joint.ts:22

The anchor point, relative to bodyA's center of mass and unrotated by bodyA's angle (i.e. in bodyA's local space).


anchorB?

optional anchorB?: Vector2

Defined in: physics/joints/revolute-joint.ts:28

The anchor point, relative to bodyB's center of mass and unrotated by bodyB's angle (i.e. in bodyB's local space).


bodyA

bodyA: RigidBody

Defined in: physics/joints/revolute-joint.ts:11

The first body connected by the joint.


bodyB

bodyB: RigidBody

Defined in: physics/joints/revolute-joint.ts:16

The second body connected by the joint.


enableLimit?

optional enableLimit?: boolean

Defined in: physics/joints/revolute-joint.ts:34

Whether lowerAngle/upperAngle are enforced. When false, the bodies may rotate relative to each other without limit.


lowerAngle?

optional lowerAngle?: number

Defined in: physics/joints/revolute-joint.ts:40

The minimum allowed RevoluteJoint.angle. Only enforced when enableLimit is true.


upperAngle?

optional upperAngle?: number

Defined in: physics/joints/revolute-joint.ts:46

The maximum allowed RevoluteJoint.angle. Only enforced when enableLimit is true.