ISpatialVisitor::Raycast

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.

Windows
MacOS
Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/ISpatialAcceleration.h

Include

#include "Chaos/ISpatialAcceleration.h"

Syntax

bool Raycast
(
    const TSpatialVisitorData< TPayloadType > & Instance,
    FQueryFastData & CurData
)

Remarks

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. 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

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