Skip to content

eulerjs API / @eulerjs/core / BaseJointOptions

BaseJointOptions ​

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

Extended by ​

Properties ​

PropertyTypeDescriptionDefined in
bodyABody-packages/core/src/joints/BaseJoint.ts:5
bodyB?BodyThe other body. Leave out to tie body A to the world.packages/core/src/joints/BaseJoint.ts:7
breakForce?numberThe joint breaks, and the world removes it, once it carries more force than this, in newtons. Defaults to Infinity.packages/core/src/joints/BaseJoint.ts:16
breakTorque?numberThe joint breaks once it carries more torque than this, in newton metres. Defaults to Infinity.packages/core/src/joints/BaseJoint.ts:18
collideConnected?boolean | "unlessOverlapping"Whether the two bodies still collide with each other. Defaults to true; turn it off for parts that overlap where they are joined, such as a ragdoll's thigh and shin. 'unlessOverlapping' decides when the joint is added to the world: they collide unless their colliders overlap then, as joined limbs do and a shoulder that clears the chest doesn't.packages/core/src/joints/BaseJoint.ts:14

Released under the MIT License.