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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback