8 for (
auto &&[beh, vel] :
Zipper(behaviours, velocities)) {
9 if (!beh || !vel)
continue;
void ai_system(Registry &r, ComponentContainer< Behaviour > &behaviours, ComponentContainer< Velocity > &velocities)
AI system that updates the behaviour and velocity of entities.
Manages a collection of components associated with entities in an ECS (Entity-Component-System) archi...
Manages entities and their associated components, enabling the creation, deletion,...
Combines multiple containers into a single iterable unit, iterating over corresponding elements from ...
float deltaTime
The time difference between the current frame and the last frame.