Pathfinding NavMesh

From Second Life Wiki
Jump to: navigation, search

Basic Overview

A look at the Navigation Mesh view of your region can quickly show you exactly how the navmesh system works and help troubleshoot potential problems.

This is the basic view:

The active Navmesh areas are in light grey, with the static obstacle areas outlined in red. The blank void spaces outlined in red are areas where your pathfinding creatures cannot go. These areas can be easily seen when you turn Static Obstacles on.

In the Test tab of the Edit/Test pathfinding window you can test walkable pathways. Control-click to start your path (pink capsule). Shift-click and drag to see your path (orange capsule and pathway). Pathfinding characters will calculate the fastest way to navigate from point A to point B in the navmesh.

Material Volumes will appear in the navmesh as opaque purple objects. These are phantom objects that can be set to change the walkability coefficients of an area of the navmesh. Walkability coefficients are multipliers that may be applied to the speed of a pathfinding character.

Exclusion Volumes show up as transparent yellow objects. These objects are phantom and pathfinding characters will not move in those area, yet avatars can.

Walkable areas show up in green, and turning the world tick box off with walkables on will give you a good quick view all the walkable surfaces in the navigation mesh.

Other Notes

  • A pathfinding region will share its nav mesh with its immediate neighbors, which allows cross-region pathfinding.
  • The navmesh view that you see in the viewer is from when the simulator last baked the navmesh and only takes permanent objects into account. Movable obstacles, such as avatars or linksets set to "Movable Obstacle" can block characters' paths but are not visible in this navmesh view.
  • The minimum size allowed for a nav mesh 'island' (such as an isolated walkable platform which is disconnected from the rest of the nav mesh) is approximately 100m^2.