Visitor base class used to iterate through spatial acceleration structures. 更多...
#include <ISpatialAcceleration.h>
Public 成员函数 | |
| virtual bool | Overlap (const TSpatialVisitorData< TPayloadType > &Instance)=0 |
| 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 | |
| virtual bool | Raycast (const TSpatialVisitorData< TPayloadType > &Instance, FQueryFastData &CurData)=0 |
| 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. 更多... | |
| virtual bool | Sweep (const TSpatialVisitorData< TPayloadType > &Instance, FQueryFastData &CurData)=0 |
| 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. 更多... | |
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
|
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
|
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