Unity 3D – Pathfinding – NavMesh Obstacles
These items are not baked into the NavMesh, and thus can move around freely while getting in the way.
Questi ostacoli non possono essere attraversati dal’agente, non sono calcolati nel NavMesh e si possono muovere liberamente nella scena.
1. Create a NavMesh
2. Create a ‘targetNavigation’ object
3. Create a NavMeshAgent
4. Create a game object and name it ‘moving obstacle’
Select ‘moving obstacle’ Inspector> ‘Add component’> Navigation> Nav Mesh Obstacle setup
– Radius: radius of the obstacle collider
– Height: height of ther obstacle collider
– Move Threshold (soglia):
– Carve (intagliare):