Language:
Discover
By Skill Level
By Category

FMath::LineBoxIntersection

Choose your OS:

Syntax

static bool LineBoxIntersection
(
    const FBox & Box,
    const FVector & Start,
    const FVector & End,
    const FVector & Direction,
    const FVector & OneOverDirection
)

Remarks

Determines whether a line intersects a box. This overload avoids the need to do the reciprocal every time.

References

Module

Core

Header

Runtime/Core/Public/Math/UnrealMathUtility.h

Source

Runtime/Core/Public/Math/Box.h