rcCalcGridSize

Calculates the grid size based on the bounding box and grid cell size.

Windows
MacOS
Linux

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

Syntax

void rcCalcGridSize
(
    const float * bmin,
    const float * bmax,
    float cs,
    int * w,
    int * h
)

Remarks

Calculates the grid size based on the bounding box and grid cell size.

Parameters

Parameter

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]

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss