nanos world API Reference Unofficial documentation
Static function Shared

NanosMath.ClampAxis

Clamps an angle to the range of [0, 360]

Syntax

Lua
NanosMath.ClampAxis(value)

Parameters

Name Type Default Description
value number The number to be clamped

Returns

  • number the number clamped

Examples

Clamping an angle
local axis = NanosMath.ClampAxis(720)