📄️ Overview
Ray queries cast NumRays rays to intersect the scene per each entity. The image below shows a SteeringSystemAsset with one group of ray behaviors. The selected ray query here is Sweep2DCreateRaysJobWrapper. It casts NumRays rays, to max distance of MaxDistance. The Sweep2DCreateRaysJobWrapper casts the rays in section of a circle with a given field of view FOV. The rays will only hit objects matching the selected LayerMask.
📄️ ICreateRaysJobWrapper
Implementations of ICreateRaysJobWrapper create NumRays RayCommands per each entity. The rays are then cast by the BaseSteeringSystem in the background. The results of these raycasts are then passed into ray behaviors.