Skip to content

eulerjs API / @eulerjs/core / BaseJoint

BaseJoint ​

Defined in: packages/core/src/joints/BaseJoint.ts:22

What every joint has: the bodies it ties, the loads it carries and when it breaks.

Extended by ​

Constructors ​

Constructor ​

ts
new BaseJoint(options): BaseJoint;

Defined in: packages/core/src/joints/BaseJoint.ts:44

Parameters ​

ParameterType
optionsBaseJointOptions

Returns ​

BaseJoint

Properties ​

PropertyModifierTypeDefault valueDescriptionDefined in
bodyAreadonlyBodyundefined-packages/core/src/joints/BaseJoint.ts:23
bodyBreadonlyBody | undefinedundefined-packages/core/src/joints/BaseJoint.ts:24
breakForcepublicnumberundefined-packages/core/src/joints/BaseJoint.ts:32
breakTorquepublicnumberundefined-packages/core/src/joints/BaseJoint.ts:33
brokenpublicbooleanfalseSet once the joint has broken.packages/core/src/joints/BaseJoint.ts:42
collideConnectedSettingreadonlyboolean | "unlessOverlapping"undefinedAs asked for, before a world decides 'unlessOverlapping'.packages/core/src/joints/BaseJoint.ts:30
forcereadonlyVector3...The force the joint put on body B over the last step (on body A, for a joint to the world), in N, world space; on the other it is the opposite. Written by the backend.packages/core/src/joints/BaseJoint.ts:38
torquereadonlyVector3...The torque the joint put on the same body over the last step, in N·m. Written by the backend.packages/core/src/joints/BaseJoint.ts:40

Accessors ​

bodies ​

Get Signature ​

ts
get bodies(): readonly Body[];

Defined in: packages/core/src/joints/BaseJoint.ts:59

The bodies the joint ties together.

Returns ​

readonly Body[]


collideConnected ​

Get Signature ​

ts
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


isOverloaded ​

Get Signature ​

ts
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

Released under the MIT License.