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

Add hitbox to either space or collision component #663

Closed Noofbiz closed 5 years ago

Noofbiz commented 5 years ago

I was thinking adding a hitbox as []Line to either the space or collision component that could be used to determine collisions for any shape made by the lines, rather than just rectangles. I think space component would be best so it could be used in other systems such as mouse without the need to add collision component to the mouse system