diff --git a/reference.html b/reference.html index f4cd620..dba2b32 100644 --- a/reference.html +++ b/reference.html @@ -1324,13 +1324,13 @@ end
Returns:
-
Array
-
An array of neighboring objects.
+
Set
+
A set (i.e. table of t[other] = other) of neighboring objects.
Example:
local others = hash:getNeighbors(obj, vector(-100,-70), vector(0,0))
-for _,other in ipairs(others) do
+for _,other in pairs(others) do
     obj:pushAway(other)
 end