@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 ​
| Parameter | Type |
|---|---|
previous | Quaternion |
current | Quaternion |
deltaTime | number |
Returns ​
Vector3

