Support Forum

Newby question regarding RayCast and obstacles

Hi, I am sure I am missing something obvious - but can’t figure out what. Basically I am trying to use RayCast method, and I simply want the agents to walk on the terrain which is set to ground layer; On the attached screenshot, we can see some objects on terrain - and all those objects are in Scenery Layer.
Question is, how to generate the graph where the agent would navigate around the obstacle? With the current setup, my agents basically gets stuck at those barrels and fireplace.

Thanks in advance;


You should include all objects in the scan that you want the agent to navigate around. In this case you should expand your layer mask in the recast graph settings to include the scenery layer.