ISpatialVisitor

Visitor base class used to iterate through spatial acceleration structures.

Windows
MacOS
Linux

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

Name Description

Public function Virtual

~ISpatialVisitor()

Functions

Name Description

Public function Virtual Const

const void &...

 

GetQueryData()

Public function

bool

 

Overlap

(
    const TSpatialVisitorData< TPayload...
)

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

Public function

bool

 

Raycast

(
    const TSpatialVisitorData< TPayload...,
    FQueryFastData& CurData
)

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.

Public function

bool

 

Sweep

(
    const TSpatialVisitorData< TPayload...,
    FQueryFastData& CurData
)

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss