Nebula
Loading...
Searching...
No Matches
navmeshbuilder.h File Reference
#include "util/array.h"
#include "util/blob.h"
#include "math/mat4.h"
#include "math/bbox.h"
#include "math/vec3.h"
#include "flat/navigation/navmeshsettings.h"
#include "flat/navigation/agentkinds.h"
#include "DetourNavMesh.h"

Go to the source code of this file.

Classes

struct  Navigation::Build::MeshSource
 triangle geometry placed in the world More...
struct  Navigation::Build::HeightFieldSource
 height field placed in the world, laid out like Physics::HeightFieldInput More...
struct  Navigation::Build::AreaVolume
 assigns an area to the walkable surface inside it More...
struct  Navigation::Build::BuildInput
 everything a build needs More...
struct  Navigation::Build::Tile
 one tile of Detour data, as dtCreateNavMeshData produced it More...
struct  Navigation::Build::BuildOutput
 the built navmesh More...
struct  Navigation::Build::BuildStats
 statistics of a build More...

Namespaces

namespace  Navigation
 Navigation::Build geometry sources.
namespace  Navigation::Build

Enumerations

enum  Navigation::Build::PolyFlags : unsigned short { Navigation::Build::PolyFlag_Walk = 1 << 0 }
 polygon flags written into the Detour data More...

Functions

Math::bbox Navigation::Build::SourceBounds (const BuildInput &input)
 return the world bounds of all sources
bool Navigation::Build::BuildNavMesh (const BuildInput &input, BuildOutput &output, BuildStats *stats=nullptr)
 build the navmesh, returns false if nothing walkable was found or a tile failed
dtNavMesh * Navigation::Build::CreateDetourNavMesh (const BuildOutput &output)
 create a Detour navmesh from built data, the tile data is copied. Free with dtFreeNavMesh

Variables

static constexpr unsigned char Navigation::Build::DefaultWalkableArea = 63
 the area of walkable surface which no area volume covers, Recast's RC_WALKABLE_AREA