diff --git a/modules/octree.lua b/modules/octree.lua index cf78a59..81303c1 100644 --- a/modules/octree.lua +++ b/modules/octree.lua @@ -9,7 +9,7 @@ octree.__index = octree -- TODO: ray-octree intersection - find all nodes a ray intersects with, possibly given a distance limit -- TODO: ability to store tables would be nice! -function new() +local function new() local t = { root = { size = 1, diff --git a/modules/quadtree.lua b/modules/quadtree.lua index 49e8595..7a0e183 100644 --- a/modules/quadtree.lua +++ b/modules/quadtree.lua @@ -4,7 +4,7 @@ local quadtree = {} quadtree.__index = quadtree -function new() +local function new() local t = { root = { size = 1,