Skip to content

math

The math namespace. Nyx Lua API v1.

math.normalize_angle(degrees: number) -> number

Wraps an angle to (-180, 180].

math.calc_angle(from: vector, to: vector) -> vector

Pitch and yaw that look from one point to another.