Image 012f6f962f missing recast nav stuff | 4 gadi atpakaļ | |
---|---|---|
.. | ||
DebugUtils | 4 gadi atpakaļ | |
Detour | 4 gadi atpakaļ | |
DetourCrowd | 4 gadi atpakaļ | |
DetourTileCache | 4 gadi atpakaļ | |
Docs | 4 gadi atpakaļ | |
Recast | 4 gadi atpakaļ | |
RecastDemo | 4 gadi atpakaļ | |
Tests | 4 gadi atpakaļ | |
.editorconfig | 4 gadi atpakaļ | |
.gitignore | 4 gadi atpakaļ | |
.travis.yml | 4 gadi atpakaļ | |
CMakeLists.txt | 4 gadi atpakaļ | |
CONTRIBUTING.md | 4 gadi atpakaļ | |
Doxyfile | 4 gadi atpakaļ | |
License.txt | 4 gadi atpakaļ | |
README.md | 4 gadi atpakaļ | |
appveyor.yml | 4 gadi atpakaļ |
Recast is state of the art navigation mesh construction toolset for games.
The Recast process starts with constructing a voxel mold from a level geometry and then casting a navigation mesh over it. The process consists of three steps, building the voxel mold, partitioning the mold into simple regions, peeling off the regions as simple polygons.
Recast is accompanied with Detour, path-finding and spatial reasoning toolkit. You can use any navigation mesh with Detour, but of course the data generated with Recast fits perfectly.
Detour offers simple static navigation mesh which is suitable for many simple cases, as well as tiled navigation mesh which allows you to plug in and out pieces of the mesh. The tiled mesh allows you to create systems where you stream new navigation data in and out as the player progresses the level, or you may regenerate tiles as the world changes.
You can find a comprehensive demo project in RecastDemo folder. It is a kitchen sink demo containing all the functionality of the library. If you are new to Recast & Detour, check out Sample_SoloMesh.cpp to get started with building navmeshes and NavMeshTesterTool.cpp to see how Detour can be used to find paths.
RecastDemo uses premake5 to build platform specific projects. Download it and make sure it's available on your path, or specify the path to it.
premake5 gmake
from the RecastDemo
folder.cd Build/gmake
then make
RecastDemo\Bin\RecastDemo
SDL2.framework
in /Library/Frameworks/
RecastDemo
folder and run premake5 xcode4
Build/xcode4/recastnavigation.xcworkspace
/Library/Frameworks/SDL2.framework
. It should now have a suitcase icon.RecastDemo\Contrib
. Rename the SDL folder such that the path RecastDemo\Contrib\SDL\lib\x86
is valid."premake5" vs2015
from the RecastDemo
folderRecastDemo/Bin/
It is recommended to add the source directories DebugUtils
, Detour
, DetourCrowd
, DetourTileCache
, and Recast
into your own project depending on which parts of the project you need. For example your level building tool could include DebugUtils
, Recast
, and Detour
, and your game runtime could just include Detour
.
See the Contributing document for guidelines for making contributions.
Recast & Detour is licensed under ZLib license, see License.txt for more information.