compat.recastnavigation
#includeRecast Navigation — navmesh generation (Recast) and runtime pathfinding (Detour); optional crowd simulation, tile cache and debug draw
#include <recastnavigation/Recast.h>
mcpp add compat.recastnavigation@1.6.0
Usage
From this repository's own test project — built and run by CI, not written for the website.
// compat.recastnavigation——三个按 feature 门控的组件,逐个让它做出
// 可观察的工作。
//
// `recastnavigation-features` 只点名 `crowd` 和 `debug-utils`。
// `tilecache` 没被点名,这是刻意的:上游的 DebugUtils 无条件链接
// DetourTileCache,所以描述符让 `debug-utils` imply `tilecache`。这条
// implication 哪天失效,本成员会在链接期失败,而不是悄悄发出一个没法
// 画调试图的包。
//
// 一切都通过生成的 `recastnavigation/` include 前缀行使——与上游自己的
// CMake 安装产出一致——所以 shim 层对 feature 头也有覆盖,不只是核心头。
#include <recastnavigation/Recast.h>
#include <recastnavigation/RecastAlloc.h>
#include <recastnavigation/DetourAlloc.h>
#include <recastnavigation/DetourCommon.h>
#include <recastnavigation/DetourNavMesh.h>
#include <recastnavigation/DetourNavMeshBuilder.h>
#include <recastnavigation/DetourNavMeshQuery.h>
#include <recastnavigation/DetourStatus.h>
#include <recastnavigation/DetourCrowd.h>
#include <recastnavigation/DetourTileCache.h>
#include <recastnavigation/DetourTileCacheBuilder.h>
// …
tests/examples/recastnavigation-features/tests/features.cpp · project tests/examples/recastnavigation-features
Build
- targets
recastnavigation (lib)- language
c++23- import std
- no
- include dirs
*/Recast/Include, */Detour/Include, */DetourCrowd/Include, */DetourTileCache/Include, */DebugUtils/Include, mcpp_generated
Features
| feature | declares |
|---|---|
| debug-utils | implies, sources |
| crowd | sources |
| tilecache | sources |
Sources (2)
*/Recast/Source/*.cpp*/Detour/Source/*.cpp
Generated files
mcpp_generated/recastnavigation/RecastDump.hmcpp_generated/recastnavigation/DetourObstacleAvoidance.hmcpp_generated/recastnavigation/version.hmcpp_generated/recastnavigation/DetourNavMesh.hmcpp_generated/recastnavigation/DetourPathCorridor.hmcpp_generated/recastnavigation/DetourNavMeshQuery.hmcpp_generated/recastnavigation/DetourAssert.hmcpp_generated/recastnavigation/RecastAssert.hmcpp_generated/recastnavigation/Recast.hmcpp_generated/recastnavigation/DetourStatus.hmcpp_generated/recastnavigation/DetourNode.hmcpp_generated/recastnavigation/RecastDebugDraw.hmcpp_generated/recastnavigation/DetourPathQueue.hmcpp_generated/recastnavigation/DebugDraw.hmcpp_generated/recastnavigation/DetourTileCacheBuilder.hmcpp_generated/recastnavigation/DetourDebugDraw.hmcpp_generated/recastnavigation/DetourProximityGrid.hmcpp_generated/recastnavigation/DetourMath.hmcpp_generated/recastnavigation/DetourTileCache.hmcpp_generated/recastnavigation/DetourLocalBoundary.hmcpp_generated/recastnavigation/RecastAlloc.hmcpp_generated/recastnavigation/DetourNavMeshBuilder.hmcpp_generated/recastnavigation/DetourCommon.hmcpp_generated/recastnavigation/DetourCrowd.hmcpp_generated/recastnavigation/DetourAlloc.h
Versions
| Version | Platforms | Mirrors | sha256 |
|---|---|---|---|
1.6.0 latest |
LinuxWindowsmacOS | source | d48ca0121962… |