Skip to content

Commit

Permalink
Fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
waynemwashuma committed Sep 6, 2024
1 parent 1ba85fe commit d4604b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function demoGrid(grid, renderer, number = 10) {
bounceoff(canvasBound, velocity, bounds)
grid.update(clients, bounds)
const collided = grid.getCollisionPairs(checker, clients)
.flatMap(e => [bounds[e.b], bounds[e.b]])
.flatMap(e => [bounds[e.a], bounds[e.b]])

grid.draw(ctx)
ctx.strokeStyle = "white"
Expand Down

0 comments on commit d4604b1

Please sign in to comment.