Implementing hitbox polygon
- by Delusional Logic
I'm creating a shooter, it's still very early, but i'm implementing some polygon hitboxes.
So far i have created a polygon class, and i'm looking into how i can hook it onto my player.
I'm trying to stay away from having a Tick() function in my polygon class, and I would rather not update the position every tick (it would clutter up my tick functions). At the same time I would really like to have the positions in there somehow (it has a drawing function, and i will be using it for hit detection)
How would i go about implementing this polygon object into my entities?