UNavigationSystemV1::NavigationRaycast

Performs navigation raycast on NavigationData appropriate for given Querier.

Windows
MacOS
Linux

References

Module

NavigationSystem

Header

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

Include

#include "NavigationSystem.h"

Source

/Engine/Source/Runtime/NavigationSystem/Private/NavigationSystem.cpp

Syntax

static bool NavigationRaycast
(
    UObject * WorldContextObject,
    const FVector & RayStart,
    const FVector & RayEnd,
    FVector & HitLocation,
    TSubclassOf< UNavigationQueryFilter > FilterClass,
    AController * Querier
)

Remarks

Performs navigation raycast on NavigationData appropriate for given Querier.

Returns

true if line from RayStart to RayEnd was obstructed. Also, true when no navigation data present

Parameters

Parameter

Description

Querier

if not passed default navigation data will be used

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