Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Spatial > API/Runtime/GeometryCore/Spatial/FSparseDynamicOctree3
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Spatial/SparseDynamicOctree3.h |
| Include | #include "Spatial/SparseDynamicOctree3.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/Spatial/SparseDynamicOctree3.cpp |
int32 FindNearestHitObject
&40;
const FRay3d & Ray,
TFunctionRef< FAxisAlignedBox3d(int)> GetObjectBoundsFunc,
TFunctionRef< double(int, const FRay3d &)> HitObjectDistFunc,
double MaxDistance
&41; const
Remarks
Find nearest ray-hit point with objects in tree ObjectID of hit object, or -1 on miss
Parameters
| Name | Description |
|---|---|
| Ray | the ray |
| GetObjectBoundsFunc | function that returns bounding box of object identified by ObjectID |
| HitObjectDistFunc | function that returns distance along ray to hit-point on object identified by ObjectID (or TNumericLimits |
| MaxDistance | maximum hit distance |