Skip to content

@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 ​

ParameterType
axisVector3
backVector3
forearmVector3
outQuaternion

Returns ​

Quaternion