Fix hitboxes for entities

This commit is contained in:
2024-01-28 14:09:27 +01:00
parent a61768e912
commit 5d96a02284
11 changed files with 67 additions and 49 deletions

View File

@@ -199,7 +199,9 @@ void drawSettingsUI(Game *game, f32 dt);
* Utils
**********************************/
bool getEntityHitBox(ecs_entity_t entity, Position *outPos, Rectangle *outHitBox);
bool entityGetHitBox(ecs_entity_t entity, Position *outPos, Rectangle *outHitBox);
Rectangle entityTransformHitBox(Position position, HitBox hitBox);
Vector2 entityGetCenter(Position position, HitBox hitBox);
/**********************************
* MISC