Navigation
API > API/Runtime > API/Runtime/Navmesh > API/Runtime/Navmesh/Recast
References
| Module | Navmesh |
| Header | /Engine/Source/Runtime/Navmesh/Public/Recast/Recast.h |
| Include | #include "Recast/Recast.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/Recast/Recast.cpp |
void rcCalcGridSize
(
const rcReal * bmin,
const rcReal * bmax,
rcReal cs,
int * w,
int * h
)
Remarks
Calculates the grid size based on the bounding box and grid cell size.
Parameters
| Name | Description |
|---|---|
| bmin | The minimum bounds of the AABB. [(x, y, z)] [Units: wu] |
| bmax | The maximum bounds of the AABB. [(x, y, z)] [Units: wu] |
| cs | The xz-plane cell size. [Limit: > 0] [Units: wu] |
| w | The width along the x-axis. [Limit: >= 0] [Units: vx] |
| h | The height along the z-axis. [Limit: >= 0] [Units: vx] |