Closed SallyDT closed 10 years ago
This is planned. Heightfield.RasterizeTriangles
will eventually allow for more vertex formats (e.g. float[]
for vertices and int[]
for indices) and more control over what's considered walkable and unwalkable.
can you also provide a GUI interface to set which areas are walkable and not walkable?
I can add a slider for making slopes of a certain angle walkable/unwalkable, but for very similar reasons to #5, I'm not going to add any advanced features to the Examples project. The Examples project is supposed to be roughly functionally equivalent to the RecastDemo project in the Recast repository, which only allows you to tweak generation settings for a single mesh and also interact with the generated navmesh at a very basic level.
It is now possible to rasterize meshes with either per-object or per-triangle AreaFlags
.
You can generate an AreaFlags[]
from a mesh using the AreaFlagsGenerator class. I'm not too happy with the implementation (and possibly even the public API) for AreaFlagsGenerator, so that will probably change in a short while.
This can't be controlled from the GUI in the Examples project yet, though, and likely won't change until after I make AreaFlagsGenerator better.
Controllable in 6e86822. I'm going to consider this issue resolved now.
Set certain meshes as walkable and non-walkable.