Game Development Reference
In-Depth Information
Drawing the navigation mesh
Displaying the navmesh is accessible through the Sand-
box.SetDebugNavigationMesh function. Drawing the navmesh is typically a cheap
operation, as a renderable form of the navmesh is generated during the original navmesh's
construction.
Note
As the navmesh is static, the debug graphics used to render the mesh utilizes a different un-
derlying system compared to the debug graphics used by the physics system.
Passing either true or false will toggle drawing the debug navmesh.
function Sandbox_Initialize(sandbox)
Sandbox.CreateNavigationMesh(sandbox, "default");
Sandbox.SetDebugNavigationMesh(sandbox, "default", true);
end
Search WWH ::




Custom Search