Various tweaks

This commit is contained in:
2019-02-26 18:43:42 -06:00
parent 8ccd1506f3
commit 2e69647ae3
9 changed files with 85 additions and 46 deletions

View File

@@ -36,11 +36,11 @@ class IMICFPS
end
# Returns a list of all collided objects inside Bounding Box
def search(bounding_box)
def search(bounding_box, return_nodes = false)
items = []
if @root
items = @root.search_subtree(bounding_box)
items.map! {|e| e.object}
items.map! {|e| e.object} unless return_nodes
end
return items