Skip to content

eulerjs API / @eulerjs/core / SixDofJoint

SixDofJoint ​

Defined in: packages/core/src/joints/SixDofJoint.ts:114

The general joint: a frame fixed in each body, and for each of the six ways frame B can move relative to frame A (along its three axes, and twisting and swinging about them) whether it may, between which limits, and what drives it. Hinges, sliders, fixed joints and cone-twist joints are particular settings of it. Its settings can be changed between steps.

Extends ​

Extended by ​

Constructors ​

Constructor ​

ts
new SixDofJoint(options): SixDofJoint;

Defined in: packages/core/src/joints/SixDofJoint.ts:125

Parameters ​

ParameterType
optionsSixDofJointOptions

Returns ​

SixDofJoint

Overrides ​

BaseJoint.constructor

Properties ​

PropertyModifierTypeDefault valueDescriptionInherited fromDefined in
angularreadonlySixAxes<AxisMotion>undefined--packages/core/src/joints/SixDofJoint.ts:118
angularDrivesreadonlySixAxes<JointDrive | undefined>undefined--packages/core/src/joints/SixDofJoint.ts:120
bodyAreadonlyBodyundefined-BaseJoint.bodyApackages/core/src/joints/BaseJoint.ts:23
bodyBreadonlyBody | undefinedundefined-BaseJoint.bodyBpackages/core/src/joints/BaseJoint.ts:24
breakForcepublicnumberundefined-BaseJoint.breakForcepackages/core/src/joints/BaseJoint.ts:32
breakTorquepublicnumberundefined-BaseJoint.breakTorquepackages/core/src/joints/BaseJoint.ts:33
brokenpublicbooleanfalseSet once the joint has broken.BaseJoint.brokenpackages/core/src/joints/BaseJoint.ts:42
collideConnectedSettingreadonlyboolean | "unlessOverlapping"undefinedAs asked for, before a world decides 'unlessOverlapping'.BaseJoint.collideConnectedSettingpackages/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.BaseJoint.forcepackages/core/src/joints/BaseJoint.ts:38
frameAreadonlyJointFrameundefined--packages/core/src/joints/SixDofJoint.ts:115
frameBreadonlyJointFrameundefined--packages/core/src/joints/SixDofJoint.ts:116
frictionpublicnumberundefined--packages/core/src/joints/SixDofJoint.ts:122
linearreadonlySixAxes<AxisMotion>undefined--packages/core/src/joints/SixDofJoint.ts:117
linearDrivesreadonlySixAxes<JointDrive | undefined>undefined--packages/core/src/joints/SixDofJoint.ts:119
linearFrictionpublicnumberundefined--packages/core/src/joints/SixDofJoint.ts:123
orientationDrivepublicOrientationDrive | undefinedundefined--packages/core/src/joints/SixDofJoint.ts:121
torquereadonlyVector3...The torque the joint put on the same body over the last step, in N·m. Written by the backend.BaseJoint.torquepackages/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[]

Inherited from ​

BaseJoint.bodies


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

Inherited from ​

BaseJoint.collideConnected


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

Inherited from ​

BaseJoint.isOverloaded


roles ​

Get Signature ​

ts
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

NameTypeDefined in
baseJointFramepackages/core/src/joints/SixDofJoint.ts:153
baseBodyBody | undefinedpackages/core/src/joints/SixDofJoint.ts:153
movingJointFramepackages/core/src/joints/SixDofJoint.ts:153
movingBodyBodypackages/core/src/joints/SixDofJoint.ts:153

Methods ​

measure() ​

ts
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.

Returns ​

JointMeasurement

Released under the MIT License.