Roll
Since 0.6
Signature
export interface Roll {
/** Unit axis of the spin, world frame: `normal × direction of travel`. `[0, 0, 0]` when it did not move. */
axis: Vec3
/** Radians turned about `axis`: distance along the ground over the radius. Never negative. */
angle: number
/** The world-frame rotation that turns the body by `angle` about `axis`; pre-multiply it onto the rotation. */
delta: Quat
/** `axis × angle / dt`, rad/s, when `dt` was given; what a physics body rolling the same way reports. */
angularVelocity: Vec3
}
Import: import type { Roll } from "@argus/gameplay"
Members
| Member | Signature | Description |
|---|---|---|
axis | axis: Vec3 | Unit axis of the spin, world frame: normal × direction of travel. [0, 0, 0] when it did not move. |
angle | angle: number | Radians turned about axis: distance along the ground over the radius. Never negative. |
delta | delta: Quat | The world-frame rotation that turns the body by angle about axis; pre-multiply it onto the rotation. |
angularVelocity | angularVelocity: Vec3 | axis × angle / dt, rad/s, when dt was given; what a physics body rolling the same way reports. |