eulerjs API / @eulerjs/core / HingeJointOptions
HingeJointOptions
Defined in: packages/core/src/joints/presets.ts:23
Extends
PresetOptions
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
anchor? | Vector3 | Where the joint is, in world space, as the bodies are now. Defaults to body A's origin. | SixDofJointOptions.anchor | packages/core/src/joints/SixDofJoint.ts:69 |
axis? | Vector3 | The joint's x axis, in world space, as the bodies are now: the twist axis, a hinge's axis, a slider's direction. Defaults to world x. | SixDofJointOptions.axis | packages/core/src/joints/SixDofJoint.ts:71 |
bodyA | Body | - | BaseJointOptions.bodyA | packages/core/src/joints/BaseJoint.ts:5 |
bodyB? | Body | The other body. Leave out to tie body A to the world. | BaseJointOptions.bodyB | packages/core/src/joints/BaseJoint.ts:7 |
breakForce? | number | The joint breaks, and the world removes it, once it carries more force than this, in newtons. Defaults to Infinity. | BaseJointOptions.breakForce | packages/core/src/joints/BaseJoint.ts:16 |
breakTorque? | number | The joint breaks once it carries more torque than this, in newton metres. Defaults to Infinity. | BaseJointOptions.breakTorque | 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. | BaseJointOptions.collideConnected | packages/core/src/joints/BaseJoint.ts:14 |
frameA? | JointFrame | Or the joint's frame on body A exactly, in A's own frame, instead of anchor and axis. | SixDofJointOptions.frameA | packages/core/src/joints/SixDofJoint.ts:73 |
frameB? | JointFrame | And on body B, in B's frame, or in the world without body B. | SixDofJointOptions.frameB | packages/core/src/joints/SixDofJoint.ts:75 |
friction? | number | Friction in the joint, in N·m: every angular axis it doesn't lock resists turning with up to this much torque, as a stiff joint or tensed muscles do; a joint that locks none, such as a ball joint, resists turning every way alike. Defaults to 0. | SixDofJointOptions.friction | packages/core/src/joints/SixDofJoint.ts:91 |
limits? | JointLimits | How far it may turn either way from where it was made, in radians. Defaults to turning freely. | - | packages/core/src/joints/presets.ts:25 |
linearFriction? | number | Friction along the linear axes it doesn't lock, in N. Defaults to 0. | SixDofJointOptions.linearFriction | packages/core/src/joints/SixDofJoint.ts:93 |
motor? | JointDrive | Turns it, as a motor or a servo; see JointDrive. | - | packages/core/src/joints/presets.ts:27 |
