eulerjs API / @eulerjs/core / FixedJoint
FixedJoint
Defined in: packages/core/src/joints/presets.ts:94
Holds two bodies together as one, or a body in place in the world, until it breaks.
Extends
Constructors
Constructor
new FixedJoint(options): FixedJoint;Defined in: packages/core/src/joints/presets.ts:95
Parameters
| Parameter | Type |
|---|---|
options | PresetOptions |
Returns
FixedJoint
Overrides
Properties
Accessors
bodies
Get Signature
get bodies(): readonly Body[];Defined in: packages/core/src/joints/BaseJoint.ts:59
The bodies the joint ties together.
Returns
readonly Body[]
Inherited from
collideConnected
Get Signature
get collideConnected(): boolean;Defined in: packages/core/src/joints/BaseJoint.ts:26
Whether the two bodies collide with each other; fixed once the joint is in a world.
Returns
boolean
Inherited from
isOverloaded
Get Signature
get isOverloaded(): boolean;Defined in: packages/core/src/joints/BaseJoint.ts:64
Whether the loads of the last step are more than the joint can take.
Returns
boolean
Inherited from
roles
Get Signature
get roles(): object;Defined in: packages/core/src/joints/SixDofJoint.ts:153
The joint's base frame and the frame that moves against it: frame A on body A and frame B on body B; or, for a joint to the world, the world's frame (frameB) and body A's (frameA), so that either way what is measured is how the second body moves.
Returns
object
| Name | Type | Defined in |
|---|---|---|
base | JointFrame | packages/core/src/joints/SixDofJoint.ts:153 |
baseBody | Body | undefined | packages/core/src/joints/SixDofJoint.ts:153 |
moving | JointFrame | packages/core/src/joints/SixDofJoint.ts:153 |
movingBody | Body | packages/core/src/joints/SixDofJoint.ts:153 |
Inherited from
Methods
measure()
measure(): JointMeasurement;Defined in: packages/core/src/joints/SixDofJoint.ts:160
Where the moving frame is relative to the base frame (see roles), as the bodies are now.
