Skip to main content
Shared Runs in your resource.
  • Clamp raises when min is greater than max.
  • Round rounds half away from zero. decimals is 0 to 10, default 0, and 0 returns an integer.
  • Lerp does not clamp t, so values outside 0 to 1 extrapolate. InverseLerp returns 0 when a equals b. Remap does not clamp.
  • Distance2D ignores height. It takes vectors or tables with x and y.
  • PointInPolygon tests on the ground plane, with at least 3 points in order.
  • RotationToDirection turns a rotation in degrees, such as GetGameplayCamRot(2), into a unit direction.

Example