JointRecord
A joint as JointTrait holds it: both entities, the type, the frames
resolved when it was made, and its settings.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
anchor |
Vector3 |
In the body’s axes, before its scale. |
body |
Entity | null |
- |
breakForce |
number | null |
- |
breakTorque |
number | null |
- |
collideConnected |
boolean |
- |
connectedAnchor |
Vector3 |
In the other body’s axes, before its scale, or in the world’s. |
connectedFrame |
Quaternion |
The same axes in the other body’s, as the bodies stood when it was made, so a hinge’s zero angle is that pose. |
damping |
number |
- |
frame |
Quaternion |
The joint’s axes in the body’s: a hinge turns about its x, a slider moves along it. |
length |
number |
- |
limits |
JointLimits | null |
- |
motor |
JointMotorRecord | null |
- |
restLength |
number |
- |
stiffness |
number |
- |
to |
Entity | null |
- |
type |
JointType |
- |