Add entity physics

This commit is contained in:
2024-01-29 10:17:10 +01:00
parent 409d9027ef
commit e4ec272ab2
4 changed files with 59 additions and 3 deletions

View File

@@ -98,7 +98,6 @@ void entityUnConsumePopCapacity(ecs_iter_t *it);
void entityUpdateSpatialID(ecs_iter_t *it);
/*
* 0: Game (singleton) for collisions
* 1: Position
* 2: Velocity
* 3: Steering
@@ -106,6 +105,15 @@ void entityUpdateSpatialID(ecs_iter_t *it);
*/
void entityUpdateKinematic(ecs_iter_t *it);
/*
* 0: Game (singleton) for collisions
* 1: Position
* 2: HitBox
* 2: Velocity
* 3: SpatialGridID
*/
void entityUpdatePhysics(ecs_iter_t *it);
/*
* 1: Position
* 2: Velocity