A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Separate names with a comma.
Discussion in 'Physics for ECS' started by laurentlavigne, Aug 20, 2020.
Can I query the world graph directly without spherecasting?
Can you explain a bit more what exactly do you need? For example, what do you mean by querying the world graph directly?
"find all pathable or direct eyesight within range which have the following components"
If you are looking for a single direction, then sphere cast is the way of doing things. If you are looking in all directions (again with a sphere), then you can do a CalculateDistance check and use an all hits collector.
You can write your own custom collectors to filter out/accept hits the way you want.