Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / angularVelocityFrom

Function: angularVelocityFrom() ​

ts
function angularVelocityFrom(
   previous, 
   current, 
   deltaTime): Vector3;

Defined in: xr/throwVelocity.ts:116

Angular velocity from a rotation delta, as an axis-angle vector (rad/s).

Spin makes a thrown ball read as thrown rather than launched, and it is what lets a scene do curve shots or spinning props.

Parameters ​

ParameterType
previousQuaternion
currentQuaternion
deltaTimenumber

Returns ​

Vector3