Talos docs

Roll

Since 0.6
Plain text

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

MemberSignatureDescription
axisaxis: Vec3Unit axis of the spin, world frame: normal × direction of travel. [0, 0, 0] when it did not move.
angleangle: numberRadians turned about axis: distance along the ground over the radius. Never negative.
deltadelta: QuatThe world-frame rotation that turns the body by angle about axis; pre-multiply it onto the rotation.
angularVelocityangularVelocity: Vec3axis × angle / dt, rad/s, when dt was given; what a physics body rolling the same way reports.