BallAndSocketMotor
A ball-and-socket’s motor: it turns its body toward targetRotation
and at targetAngularVelocity against the other body by the shortest
arc, as Unity’s slerp drive does, with a stiffness and a damping
that scale with mass, as a hinge’s motor does.
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
damping? |
number |
0 |
- |
maxForce? |
number |
no cap |
Newton-metres it may use about each of the joint’s three axes, so on a diagonal the whole torque reaches √3 times this, and a capped axis bends its push off the shortest arc. |
stiffness? |
number |
0 |
- |
targetAngularVelocity? |
Triple |
[0, 0, 0] |
Radians a second about each of its body’s axes. |
targetRotation? |
RotationInput |
no rotation, the rest pose |
Its body’s rotation from the joint’s rest pose, where axis lies along connectedAxis, in its body’s own axes: Euler angles in radians or a quaternion. |