Skip to main content

Type Alias: Joint

type Joint = {
constrainee: EntityRef;
constrainer: EntityRef;
breakForce: Float;
breakTorque: Float;
enableCollision: boolean;
};

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:384

Base component of all the other joint components (revolute_joint, etc.). By itself it will lock the orientations and distances of the constrainer and constrainee.

Properties

constrainee

constrainee: EntityRef;

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:388

An entity that is a rigid body.


constrainer

constrainer: EntityRef;

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:392

An entity that is a rigid or static body, or simply null.


breakForce

breakForce: Float;

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:397

The force that needs to be applied for this joint to break.

Default Value

10;

breakTorque

breakTorque: Float;

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:402

The torque that needs to be applied for this joint to break.

Default Value

10;

enableCollision

enableCollision: boolean;

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:407

Whether to enable collision between constrainer and constrainee.

Default Value

false;