Timeline for Big level objects collision system for 2d game
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 9, 2012 at 22:43 | comment | added | SWPhantom | Thanks for the info. I forgot about the distance squared comparison. However, this problem set, according to what you're saying, could still benefit from a conversion to AABB because the majority of the shapes seem to be rectangles. | |
Jul 9, 2012 at 21:55 | comment | added | bummzack | You don't need to take the square roots.. you can compare squared lengths. Circle vs. circle tests are about even with AABB tests when it comes to performance (even slightly faster). But generally it's best to chose the shape that closely encompasses the majority of the shapes you use in the game.. so if you have lots of rectangular objects, it's more efficient to use AABB tests instead of circle vs. circle, because it will trigger a in-depth collision test much less frequently... | |
Jul 9, 2012 at 21:11 | history | answered | SWPhantom | CC BY-SA 3.0 |