math
The math namespace. Nyx Lua API v1.
math.normalize_angle
Section titled math.normalize_anglemath.normalize_angle(degrees: number) -> numberWraps an angle to (-180, 180].
math.calc_angle
Section titled math.calc_anglemath.calc_angle(from: vector, to: vector) -> vectorPitch and yaw that look from one point to another.
Nyx Lua API v1 · release commit-4b659d9c3810 · d0f772c99281