3 ms·
Isn't spatial hashing most suited to colliding objects of similar sizes, and with similar dimensions in each axis? (So you can match the grid size accordingly)
by Jarmsy 2y ago
Isn't spatial hashing most suited to colliding objects of similar sizes, and with similar dimensions in each axis? (So you can match the grid size accordingly)
If you've got a mix of very different sizes and shapes, I think sweep and prune can be a better choice
- deliveryboyman 2y agoYes, in TFA the author uses objects that are the same size. I imagine that is why OP brought up spatial hashing since they specifically mention this.
- Jarmsy 2y agoWho specifically mentions what? Unless I'm missing something, nether TFA or the comment I replied to specifically mentioned the objects being similar size.