Struct RVOSystem Extends ISystem
Simulates local avoidance in an ECS context.
All agent entities must have the following ECS components:
LocalTransform
MovementControl: where you store how you want the agent to move
ResolvedMovement: where this system will output how the agent should move, when using RVO
The system will use the data from MovementControl, and output the following fields to ResolvedMovement:
ResolvedMovement.targetPoint: Where the agent should move to. ResolvedMovement.speed: At what speed the agent should move, in world units. ResolvedMovement.turningRadiusMultiplier: This will go up if its more crowded, to indicate that the agent should try to take wider turns to improve crowd flow.
The AgentIndex component will be added to the agent automatically by this system. You do not need to care about it.