Closed grahamjenson closed 12 years ago
For some reason the index passed into Collision behaviour was the length of the array causing an error. This is due to CoffeeScript [3..2] equalling an array [3,2]. To solve this I used arrayslicing, see code below.
# Check pool for collisions.
PS. Great library.
Thanks for the ticket, should be fixed now :)
For some reason the index passed into Collision behaviour was the length of the array causing an error. This is due to CoffeeScript [3..2] equalling an array [3,2]. To solve this I used arrayslicing, see code below.
- for i in [index..@pool.length - 1]
- o = @pool[i]
PS. Great library.