appLineCheckTriangleSOA

Line vs triangle intersection test. Tests 1 line against 4 triangles at once.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/kDOP.h

Include

#include "kDOP.h"

Syntax

static int32 appLineCheckTriangleSOA
(
    const FVector3SOA & Start,
    const FVector3SOA & End,
    const FVector3SOA & Dir,
    const FTriangleSOA & Triangle4,
    float & InOutIntersectionTime
)

Remarks

Line vs triangle intersection test. Tests 1 line against 4 triangles at once.

Returns

Index (0-3) to specify which of the 4 triangles the line intersected, or -1 if none was found.

Parameters

Parameter

Description

Start

Start of the line segment

End

End of the line segment

Dir

Direction of the line segment (not normalized, just End-Start)

Triangle4

Four triangles

IntersectionTime

[in/out] Best intersection time so far (0..1), as in: IntersectionPoint = Start + IntersectionTime * Dir.

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