appLineCheckTriangle

Line vs triangle intersection test.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "kDOP.h"

Syntax

bool appLineCheckTriangle
(
    const FVector4 & Start,
    const FVector4 & End,
    const FVector4 & Dir,
    const FVector4 & V0,
    const FVector4 & V1,
    const FVector4 & V2,
    const FVector4 & Normal,
    float & IntersectionTime
)

Remarks

Line vs triangle intersection test.

Returns

true if the line intersected the triangle

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)

V0

First vertex of the triangle

V1

Second vertex of the triangle

V2

Third vertex of the triangle

Normal

Triangle normal (including +W for the plane equation)

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