Navigation
API > API/Plugins > API/Plugins/ZoneGraph
References
| Module | ZoneGraph |
| Header | /Engine/Plugins/Runtime/ZoneGraph/Source/ZoneGraph/Public/ZoneGraphBVTree.h |
| Include | #include "ZoneGraphBVTree.h" |
Syntax
USTRUCT&40;&41;
struct FZoneGraphBVTree
Remarks
Quantized BV-Tree
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FZoneGraphBVNode > | Nodes | BV-tree nodes. | |
| FVector | Origin | Quantization range origin | |
| float | QuantizationScale | Scale to convert from world coordinates to quantized range. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Build
(
TStridedView< const FBox > Boxes |
Build BV-tree from boxes, the index of the box in the array will be the index of the query result. | |
| FZoneGraphBVNode | CalcNodeBounds
(
const FBox& Box |
||
| FBox | CalcWorldBounds
(
const FZoneGraphBVNode& Node |
||
| TConstArrayView< FZoneGraphBVNode > | GetNodes () |
||
| int32 | GetNumNodes () |
||
| const FVector & | GetOrigin () |
||
| float | |||
| void | Query
(
const FBox& Bounds, |
Queries the BV-tree, calls Function on each child node which bounds overlap the query bounds. | |
| void | Queries the BV-tree, return index of overlapping items. |
Constants
| Name | Description |
|---|---|
| MaxQuantizedCoord | Max quantized coordinate value during conversion, the scale is truncated to account for the expansion in CalcNodeBounds(). |