Game Development Reference
In-Depth Information
Cell Size : This is also a very important parameter. During the voxel
step of the Recast algorithm, this sets the size of the cubes to inspect
the geometry. The smaller the size, the more detailed and finer the
mesh, but the longer the processing time for Recast. A large cell size
makes computation fast but loses detail.
For example, here is a NavMesh from our demo with a cell size of 0.01 :
You can see the finer detail here. The following is the navigation mesh generated
with a cell size of 0.1 :
Note the difference between the two screenshots. In the former, walking through the
two walls lower down in our picture is possible, but in the latter with a larger cell size,
there is no path even though the character radius is the same. Problems like this
become greater with larger cell sizes. The following is a navigation mesh with a cell
size of 1 :
Search WWH ::




Custom Search