Navigation
Unreal Engine C++ API Reference > Runtime > Chaos > Chaos
Inheritance Hierarchy
- ISpatialVisitor
- TBPVisitor
- TSimSweepSQVisitor
- TSQVisitor
References
Module | Chaos |
Header | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/ISpatialAcceleration.h |
Include | #include "Chaos/ISpatialAcceleration.h" |
Syntax
template<typename TPayloadType, typename T>
class ISpatialVisitor
Remarks
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
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
const void * | GetQueryData () |
|
![]() ![]() ![]() |
const void * | Return a pointer to the payload on which we are querying the acceleration structure | |
![]() ![]() ![]() |
const void * | GetSimData () |
|
![]() ![]() ![]() |
bool | ||
![]() |
bool | Overlap
(
const TSpatialVisitorData< TPayloadType >& Instance |
Called whenever an instance in the acceleration structure may overlap - the instance we are potentially overlapping Returns true to continue iterating through the acceleration structure |
![]() |
bool | Raycast
(
const TSpatialVisitorData< TPayloadType >& Instance, |
Called whenever an instance in the acceleration structure may intersect with a raycast - the instance we are potentially intersecting with a raycast - the current query data. |
![]() ![]() ![]() |
bool | ShouldIgnore
(
const TSpatialVisitorData< TPayloadType >& Instance |
|
![]() |
bool | Sweep
(
const TSpatialVisitorData< TPayloadType >& Instance, |
Called whenever an instance in the acceleration structure may intersect with a sweep - the instance we are potentially intersecting with a sweep - the length all future intersection tests will use. |