EngoEngine / engo

Engo is an open-source 2D game engine written in Go.
https://engoengine.github.io
MIT License
1.74k stars 136 forks source link

added separation of axis to collision system #751

Closed Noofbiz closed 3 years ago

Noofbiz commented 3 years ago

So it can detect collisions for shapes more complicated than AABB. Still defaults to AABB if hitbox is not defined, so anyone using it still uses the old stuff unless they explicitly switch. Updated the falling demo to use hitboxes and have a few different shapes and rotations. Haven't added tests yet.

coveralls commented 3 years ago

Coverage Status

Coverage increased (+3.4%) to 40.851% when pulling fd307daff55cbd8a8ce2601d0a50b83ec4515ba6 on hitboxes_for_collision into 351c4cca120f1ff6ac4945429015f9b69e1f3dac on master.