Tagged Questions
3
votes
3answers
152 views
How to choose cell to put entity in in an uniform grid used for broad phase collision detection?
I'm trying to implement the broad phase of my collision detection algorithm. My game is an arcade game with lot of moving entities in an open space with relatively equivalent sizes.
Regarding the ...
3
votes
2answers
1k views
Algorithm to fit shapes to 2D grid?
Let's say you have an n-by-m grid. Some squares are occupied, some are not.
You want to know where in the grid you can fit arbitrary shapes such as to not hit an occupied square. The shapes would ...
8
votes
3answers
883 views
How to find 2D grid cells swept by a moving circle?
I'm making a game based on a 2D grid, with some cells passable and some not. Dynamic objects can move continuously, independent of the grid, but need to collide with impassable cells.
I wrote an ...