|
| | FNavLocalGridData () |
| |
| AIMODULE_API | FNavLocalGridData (const FVector &Center, float Extent2D) |
| |
| AIMODULE_API | FNavLocalGridData (const FVector &Center, const FVector2D &Extent2D) |
| |
| AIMODULE_API | FNavLocalGridData (const TArray< FNavLocalGridData > &SourceGrids) |
| |
| AIMODULE_API void | MarkPointObstacle (const FVector &Center) |
| |
| AIMODULE_API void | MarkBoxObstacle (const FVector &Center, const FVector &Extent, const FQuat &Quat=FQuat::Identity) |
| |
| AIMODULE_API void | MarkCapsuleObstacle (const FVector &Center, float Radius, float HalfHeight) |
| |
| AIMODULE_API void | SetHeight (float ExtentZ) |
| |
| const int32 | GetGridId () const |
| |
| bool | HasObstacleUnsafe (int32 LocationX, int32 LocationY) const |
| |
| FIntVector | GetGlobalCoords (int32 CellIdx) const |
| |
| AIMODULE_API int32 | GetCellIndexFromGlobalCoords2D (const FIntVector &WorldCoords) const |
| |
| FVector | GetProjectedCellCenter (int32 CellIdx) const |
| |
| FVector | GetProjectedCellCenter (int32 LocationX, int32 LocationY) const |
| |
| AIMODULE_API void | FindPathForMovingAgent (const FNavigationPath &SourcePath, const FVector &EntryLocation, int32 EntrySegmentStart, TArray< FVector > &PathPointsInside, int32 &NextSegmentStart) const |
| |
| AIMODULE_API bool | FindPath (const FIntVector &StartCoords, const FIntVector &EndCoords, TArray< FIntVector > &PathCoords) const |
| |
| AIMODULE_API void | ProjectCells (const ANavigationData &NavData) |
| |
| int32 | GetNeighbourCount (FNodeRef NodeRef) const |
| |
| bool | IsValidRef (FNodeRef NodeRef) const |
| |
| AIMODULE_API FNodeRef | GetNeighbour (const FNodeRef NodeRef, const int32 NeiIndex) const |
| |
| | TSimpleCellGrid () |
| |
| bool | Init (const float InCellSize, const FBox &Bounds) |
| |
| bool | Init (const float InCellSize, const FGridSize2D &InGridSize, const FVector &InOrigin, const float VerticalBoundSize) |
| |
| void | SetVerticalInterval (const FFloatInterval &VerticalInterval) |
| |
| void | UpdateWorldBounds () |
| |
| bool | IsValid () const |
| |
| bool | IsValidIndex (const int32 CellIndex) const |
| |
| bool | IsValidCoord (int32 LocationX, int32 LocationY) const |
| |
| bool | IsValidCoord (const FIntVector &CellCoords) const |
| |
| uint32 | GetAllocatedSize () const |
| |
| FIntVector | GetCellCoordsUnsafe (const FVector &WorldLocation) const |
| |
| FIntVector | GetCellCoords (const FVector &WorldLocation) const |
| |
| FIntVector | GetCellCoords (int32 CellIndex) const |
| |
| int32 | GetCellCoordX (int32 CellIndex) const |
| |
| int32 | GetCellCoordY (int32 CellIndex) const |
| |
| int32 | GetCellIndexUnsafe (const FVector &WorldLocation) const |
| |
| int32 | GetCellIndexUnsafe (const FIntVector &CellCoords) const |
| |
| int32 | GetCellIndexUnsafe (int32 LocationX, int32 LocationY) const |
| |
| int32 | GetCellIndex (int32 LocationX, int32 LocationY) const |
| |
| int32 | GetCellIndex (const FVector &WorldLocation) const |
| |
| FBox | GetWorldCellBox (int32 CellIndex) const |
| |
| FBox | GetWorldCellBox (int32 LocationX, int32 LocationY) const |
| |
| FBox2D | GetWorldCellBox2D (int32 CellIndex) const |
| |
| FBox2D | GetWorldCellBox2D (int32 LocationX, int32 LocationY) const |
| |
| FBox | GetWorldCellRectangleBox (const FIntRect &CellRect) const |
| |
| FIntRect | GetCellRectangleFromBox (const FBox &WorldBox) const |
| |
| FIntRect | GetGridRectangle () const |
| |
| FVector | GetWorldCellCenter (int32 CellIndex) const |
| |
| FVector | GetWorldCellCenter (int32 LocationX, int32 LocationY) const |
| |
| const FCellType & | GetCellAtWorldLocationUnsafe (const FVector &WorldLocation) const |
| |
| const FCellType & | GetCellAtWorldLocation (const FVector &WorldLocation) const |
| |
| FCellType & | operator[] (int32 CellIndex) |
| |
| const FCellType & | operator[] (int32 CellIndex) const |
| |
| FCellType & | GetCellAtIndexUnsafe (int32 CellIndex) |
| |
| const FCellType & | GetCellAtIndexUnsafe (int32 CellIndex) const |
| |
| FCellType & | GetCellAtCoordsUnsafe (int32 LocationX, int32 LocationY) |
| |
| const FCellType & | GetCellAtCoordsUnsafe (int32 LocationX, int32 LocationY) const |
| |
| int32 | GetCellsCount () const |
| |
| int32 | Num () const |
| |
| void | Serialize (FArchive &Ar) |
| |
| void | AllocateMemory () |
| |
| void | FreeMemory () |
| |
| void | Zero () |
| |
| void | CleanUp () |
| |
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?