ARCore Line Trace Ray

ARCore Line Trace Ray

Windows
MacOS
Linux

Traces a ray along the given line. Intersections with detected scene geometry are returned, sorted by distance from the start of the line; the nearest intersection is returned first.

Target is Google ARCore Frame Function Library

ARCore Line Trace Ray
Start
X0
Y 0
Z 0
End
X0
Y 0
Z 0
Trace Channels
None
Out Hit Results
Return Value

Inputs

In
Exec
Start
Vector (by ref)

The start of line segment.

End
Vector (by ref)

The end of line segment.

Trace Channels
Set of EGoogleARCoreLineTraceChannel Enums

A set of EGoogleARCoreLineTraceChannel indicate which type of line trace it should perform.

Outputs

Out
Exec
Out Hit Results
Array of ARTrace Result Structures

The list of hit results sorted by distance.

Return Value
Boolean

True if there is a hit detected.

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