Interface: RevoluteJointOptions
Defined in: physics/joints/revolute-joint.ts:7
Options for creating a RevoluteJoint.
Properties
anchorA?
optionalanchorA?: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?
optionalanchorB?: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?
optionalenableLimit?: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?
optionallowerAngle?:number
Defined in: physics/joints/revolute-joint.ts:40
The minimum allowed RevoluteJoint.angle. Only enforced when
enableLimit is true.
upperAngle?
optionalupperAngle?:number
Defined in: physics/joints/revolute-joint.ts:46
The maximum allowed RevoluteJoint.angle. Only enforced when
enableLimit is true.