nanos world API Reference Unofficial documentation
Function Shared

Vector.IsNear

Efficiently checks whether vector is near to another vector within a specified radius

Syntax

Lua
my_vector:IsNear(other, radius)

Parameters

Name Type Default Description
other Vector — The vector to compare to
radius number — The radius to check

Returns

  • boolean If the vector is near to the other vector