ANavigationData::Raycast

Synchronously makes a raycast on navigation data using QueryFilter

Windows
MacOS
Linux

References

Module

NavigationSystem

Header

/Engine/Source/Runtime/NavigationSystem/Public/NavigationData.h

Include

#include "NavigationData.h"

Syntax

bool Raycast
(
    const FVector & RayStart,
    const FVector & RayEnd,
    FVector & HitLocation,
    FSharedConstNavQueryFilter QueryFilter,
    const UObject * Querier
) const

Remarks

Synchronously makes a raycast on navigation data using QueryFilter @note don't make this function virtual! Look at implementation details and its comments for more info.

Returns

true if line from RayStart to RayEnd is obstructed

Parameters

Parameter

Description

HitLocation

if line was obstructed this will be set to hit location. Otherwise it contains SegmentEnd

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