diff options
Diffstat (limited to 'src/entity.h')
-rw-r--r-- | src/entity.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/entity.h b/src/entity.h index 844386c..1ac3422 100644 --- a/src/entity.h +++ b/src/entity.h @@ -63,6 +63,7 @@ typedef struct Entity { EntityType type; Model * model; + float radius; // Used for quick collision detection. Vector3 position; Quaternion rotation; @@ -102,7 +103,8 @@ const extern EntityTypeInfo entityTypeInfo[ENTITY_TYPE_COUNT]; Entity createEntity(EntityType type, Game * game); void closeEntity(Entity * entity); -bool entitiesCollide(Entity entity1, Entity entity2); +void setEntityRadius(Entity * entity); // Uses model to set radius; +bool checkEntityCollision(Entity entity1, Entity entity2); // Helper functions for updating and drawing. void entityDraw(Entity * entity); |