| TSimpleCellGrid
|
Module |
|
Header |
/Engine/Source/Runtime/AIModule/Classes/Navigation/NavLocalGridData.h |
Include |
#include "Navigation/NavLocalGridData.h" |
struct FNavLocalGridData : public TSimpleCellGrid< uint8,((uint8) 0xff) >
Local navigation grid - simple 2D grid used for navigation.
Cell can be either free or marked as obstacle, connected with 8 neighbors (no walls in between)
When used as source for UNavLocalGridManager, each obstacle should define its own grid data. Corresponding category in gameplay debugger is hidden by default, please adjust project configs to change that.
TODO: helpers for marking different basic shapes TODO: serialization (with maps?) TODO: FNavigationPath support?
Name | Description | ||
---|---|---|---|
|
TArray< float > |
CellZ |
|
|
float |
LastAccessTime |
Name | Description | |
---|---|---|
|
FNavLocalGridData() |
|
|
FNavLocalGridData ( |
|
|
FNavLocalGridData ( |
|
|
FNavLocalGridData |
Name | Description | ||
---|---|---|---|
|
FindPath ( |
Create path points from StartCoords to EndCoord, returns false when failed |
|
|
FindPathForMovingAgent |
Creates path points from navigation path going through grid |
|
|
GetCellIndexFromGlobalCoords2D ( |
Convert global world coords to cell index, return -1 if outside |
|
|
GetGlobalCoords ( |
Convert cell index to global world coords with origin in (0,0,0) |
|
|
const int32 |
GetGridId() |
Get unique Id of grid |
|
GetNeighbour |
||
|
GetNeighbourCount ( |
||
|
GetProjectedCellCenter |
Convert cell coords on grid to world location using projected heights |
|
|
GetProjectedCellCenter ( |
Convert cell index to world location using projected heights |
|
|
HasObstacleUnsafe |
Check if there's an obstacle at cell coords |
|
|
IsLineObstructed ( |
Check if line trace between local coords on grid hits any obstacles, doesn't validate coords! |
|
|
IsValidRef ( |
||
|
MarkBoxObstacle |
Mark box (AABB or rotated) shape as obstacle |
|
|
MarkCapsuleObstacle ( |
Mark capsule shape as obstacle |
|
|
MarkPointObstacle ( |
Mark single cell as obstacle |
|
|
PostProcessPath ( |
Convert PathIndices into pruned PathCoords |
|
|
ProjectCells ( |
Project cells on navigation data and marks failed ones as obstacles |
|
|
SetGridId ( |
Set unique Id of grid |
|
|
SetHeight ( |
Set height of bounds, if not set: ProjectCells will use height of default query box |
Name |
Description |
---|---|
FNodeRef |
FGraphAStar: TGraph. |