mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 23:52:35 +00:00
Various tweaks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user