Perhaps a typo?
nickrobson opened this issue ยท 0 comments
In the below line, you retrieve the second item from the list each time without changing the list. Hence the final collision bounds are only ever (at most) collision.get(0).union(collision.get(1))
, which I assume is incorrect. Perhaps you intended to use collision.get(i)
as that is what the i
variable is counting.