@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / gripQuaternion
Function: gripQuaternion() ​
ts
function gripQuaternion(
axis,
back,
forearm,
out?): Quaternion;Defined in: animation/ik.ts:94
World rotation for a hand gripping a bar along axis (unit), for hands whose bones run +X across the knuckles, +Y along the fingers and +Z out of the palm (the editor's fixed rigs). The back of the hand faces back (projected off the axis); the fingers continue away from the elbow (forearm = elbow → wrist).
Parameters ​
| Parameter | Type |
|---|---|
axis | Vector3 |
back | Vector3 |
forearm | Vector3 |
out | Quaternion |
Returns ​
Quaternion

