针对 C# 的高级路径寻找
SharpNav is a library that generates and finds paths through navigation meshes. It is functionally equivalent to Mikko Monomen's wonderful Recast Navigation.
SharpNav is proudly an RCOS project.
There are several:
SharpNav.dll will run on all .NET or Mono supported platforms, no recompilation necessary.SharpNav is both highly configurable and simple to use. If you want to generate a NavMesh from a single mesh, it is as simple as the following block of code:
//prepare the geometry from your mesh data
var tris = TriangleEnumerable.FromIndexedVertices( ... );
//use the default generation settings
var settings = NavMeshGenerationSettings.Default;
settings.AgentHeight = 1.7f;
settings.AgentWidth = 0.6f;
//generate the mesh
var navMesh = NavMesh.Generate(tris, settings);For finer control over the generation process, you can refer to the Examples project.
SharpNav is available on NuGet. It can be installed by issuing the following command in the package manager console:
PM> Install-Package SharpNavThere are also NuGet packages for the versions of SharpNav that integrate with other frameworks:
SharpNav follows the standard C# project structure. It is actively developed on Windows with Visual Studio 2015 and on Linux and OS X with MonoDevelop, so it should compile just fine in those cases.
Binaries are not output to their project's local bin folder, they are all output to the Binaries folder in the repository's root directory.
SharpNav can be configured to depend on other libraries. Each one has it's own compile configuration that require at least one extra NuGet package. The way the project is currently structured requires all of the engine integrations' packages to be downloaded regardless of which configuration is selected (this balloons the size of a checked out and built repository to a little over 400MB). Fixing this would be a great contribution if anyone reading this is a MSBuild guru :stuck_out_tongue:
Join the SharpNav mailing list to ask questions about SharpNav or for help with using it. New versions of SharpNav will also be announced on the same mailing list.
SharpNav is licensed under the MIT license. The terms of the MIT license are included in both the LICENSE file and below:
…Major contributors to SharpNav are listed in the CONTRIBUTORS file.
暂无开放 Issues,或尚未同步最近议题。