Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/WorldPartition > API/Runtime/Engine/WorldPartition/RuntimeSpatialHash
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h |
| Include | #include "WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h" |
Syntax
struct FSquare2DGridHelper
Remarks
Square 2D grid helper
Variables
| Type | Name | Description | |
|---|---|---|---|
| int64 | CellSize | ||
| TArray< FGridLevel > | Levels | ||
| FVector | Origin | ||
| FBox | WorldBounds |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSquare2DGridHelper
(
const FBox& InWorldBounds, |
|||
FSquare2DGridHelper
(
const FBox& InWorldBounds, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ForEachCells
(
TFunctionRef< void(const FSquare2DGridHelper::FGridLevel::FGridCell&)> InOperation |
Runs a function on all cells. | |
| int32 | ForEachIntersectingCells
(
const FBox& InBox, |
Runs a function on all intersecting cells for the provided box | |
| int32 | ForEachIntersectingCells
(
const FSphere& InSphere, |
Runs a function on all intersecting cells for the provided sphere | |
| int32 | ForEachIntersectingCells
(
const FSphericalSector& InShape, |
Runs a function on all intersecting cells for the provided spherical sector | |
| FGridLevel::FGridCell & | Returns the always loaded (top level) cell. | ||
| const FGridLevel::FGridCell & | Returns the always loaded (top level) cell. | ||
| const FGridLevel::FGridCell & | GetCell
(
const FGridCellCoord& InCoords |
Returns the cell at the given coord. | |
| bool | GetCellBounds
(
const FGridCellCoord& InCoords, |
Returns the cell bounds | |
| bool | GetCellGlobalCoords
(
const FGridCellCoord& InCoords, |
Returns the cell global coordinates | |
| FGridLevel & | Returns the lowest grid level. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FGrid2D | |||
| FGridLevel |