![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ISpatialAcceleration.h>
Public Member Functions | |
| virtual | ~ISpatialVisitor ()=default |
| virtual bool | Overlap (const TSpatialVisitorData< TPayloadType > &Instance)=0 |
| virtual bool | Raycast (const TSpatialVisitorData< TPayloadType > &Instance, FQueryFastData &CurData)=0 |
| virtual bool | Sweep (const TSpatialVisitorData< TPayloadType > &Instance, FQueryFastData &CurData)=0 |
| virtual const void * | GetQueryData () const |
| virtual const void * | GetSimData () const |
| virtual bool | ShouldIgnore (const TSpatialVisitorData< TPayloadType > &Instance) const |
| virtual const void * | GetQueryPayload () const |
| virtual bool | HasBlockingHit () const |
Visitor base class used to iterate through spatial acceleration structures. This class is responsible for gathering any information it wants (for example narrow phase query results). This class determines whether the acceleration structure should continue to iterate through potential instances
|
virtualdefault |
|
inlinevirtual |
|
inlinevirtual |
Return a pointer to the payload on which we are querying the acceleration structure
Reimplemented in TSQVisitor< QueryGeometryType, TPayload, THitType, bGTData >, and TBPVisitor< QueryGeometryType, TPayload, THitType, bGTData >.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in TSQVisitor< QueryGeometryType, TPayload, THitType, bGTData >.
|
pure virtual |
Called whenever an instance in the acceleration structure may overlap @Instance - the instance we are potentially overlapping Returns true to continue iterating through the acceleration structure
Implemented in TSQVisitor< QueryGeometryType, TPayload, THitType, bGTData >, and TBPVisitor< QueryGeometryType, TPayload, THitType, bGTData >.
|
pure virtual |
Called whenever an instance in the acceleration structure may intersect with a raycast @Instance - the instance we are potentially intersecting with a raycast @CurData - the current query data. Call SetLength to update the length all future intersection tests will use. A blocking intersection should update this Returns true to continue iterating through the acceleration structure
Implemented in TSQVisitor< QueryGeometryType, TPayload, THitType, bGTData >, and TBPVisitor< QueryGeometryType, TPayload, THitType, bGTData >.
|
inlinevirtual |
|
pure virtual |
Called whenever an instance in the acceleration structure may intersect with a sweep @Instance - the instance we are potentially intersecting with a sweep @CurLength - the length all future intersection tests will use. A blocking intersection should update this Returns true to continue iterating through the acceleration structure
Implemented in TSQVisitor< QueryGeometryType, TPayload, THitType, bGTData >, and TBPVisitor< QueryGeometryType, TPayload, THitType, bGTData >.