AAbstractNavData

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

NavigationSystem

Header

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

Include

#include "AbstractNavData.h"

Syntax

class AAbstractNavData : public ANavigationData

Constructors

Name Description

Public function

AAbstractNavData

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Static

FPathFinding...

 

FindPathAbstract

(
    const FNavAgentProperties& AgentPr...,
    const FPathFindingQuery& Query
)

Public function Static

bool

 

RaycastAbstract

(
    const ANavigationData* NavData...,
    const FVector& RayStart,
    const FVector& RayEnd,
    FVector& HitLocation,
    FSharedConstNavQueryFilter QueryFil...,
    const UObject* Querier
)

Public function Static

bool

 

TestPathAbstract

(
    const FNavAgentProperties& AgentPr...,
    const FPathFindingQuery& Query,
    int32* NumVisitedNodes
)

Overridden from ANavigationData

Name Description

Public function Virtual Const

void

 

BatchProjectPoints

(
    TArray< FNavigationProjectionWork >...,
    FSharedConstNavQueryFilter Filter,
    const UObject* Querier
)

Project batch of points using shared search filter.

Public function Virtual Const

void

 

BatchProjectPoints

(
    TArray< FNavigationProjectionWork >...,
    const FVector& Extent,
    FSharedConstNavQueryFilter Filter,
    const UObject* Querier
)

Batches ProjectPoint's work for efficiency

Public function Virtual Const

void

 

BatchRaycast

(
    TArray< FNavigationRaycastWork >& ...,
    FSharedConstNavQueryFilter QueryFil...,
    const UObject* Querier
)

Raycasts batched for efficiency

Public function Virtual Const

ENavigationQ...

 

CalcPathCost

(
    const FVector& PathStart,
    const FVector& PathEnd,
    float& OutPathCost,
    FSharedConstNavQueryFilter QueryFil...,
    const UObject* Querier
)

Calculates path from PathStart to PathEnd and retrieves its cost.

Public function Virtual Const

ENavigationQ...

 

CalcPathLength

(
    const FVector& PathStart,
    const FVector& PathEnd,
    float& OutPathLength,
    FSharedConstNavQueryFilter QueryFil...,
    const UObject* Querier
)

Calculates path from PathStart to PathEnd and retrieves its length.

Public function Virtual Const

ENavigationQ...

 

CalcPathLengthAndCost

(
    const FVector& PathStart,
    const FVector& PathEnd,
    float& OutPathLength,
    float& OutPathCost,
    FSharedConstNavQueryFilter QueryFil...,
    const UObject* Querier
)

Calculates path from PathStart to PathEnd and retrieves its length.

Public function Virtual Const

bool

 

DoesNodeContainLocation

(
    NavNodeRef NodeRef,
    const FVector& WorldSpaceLocation
)

Checks if specified navigation node contains given location

Public function Virtual Const

FBox

 

GetBounds()

Returns bounding box for the navmesh.

Public function Virtual Const

FNavLocation

 

GetRandomPoint

(
    FSharedConstNavQueryFilter Filter,
    const UObject* Querier
)

Public function Virtual Const

bool

 

GetRandomPointInNavigableRadius

(
    const FVector& Origin,
    float Radius,
    FNavLocation& OutResult,
    FSharedConstNavQueryFilter Filter,
    const UObject* Querier
)

Finds a random location in navigable space, in given Radius

Public function Virtual Const

bool

 

GetRandomReachablePointInRadius

(
    const FVector& Origin,
    float Radius,
    FNavLocation& OutResult,
    FSharedConstNavQueryFilter Filter,
    const UObject* Querier
)

Finds a random location in Radius, reachable from Origin

Public function Virtual

void

 

OnNavAreaAdded

(
    const UClass* NavAreaClass,
    int32 AgentIndex
)

Areas.

Public function Virtual

void

 

OnNavAreaRemoved

(
    const UClass* NavAreaClass
)

Area was removed from navigation system

Overridden from UObject

Name Description

Public function Virtual

void

 

PostLoad()

Do any object-specific cleanup required immediately after loading an object.

Overridden from INavigationDataInterface

Name Description

Public function Virtual Const

bool

 

FindMoveAlongSurface

(
    const FNavLocation& StartLocation,
    const FVector& TargetPosition,
    FNavLocation& OutLocation,
    FSharedConstNavQueryFilter Filter,
    const UObject* Querier
)

Tries to move current nav location towards target constrained to navigable area.

Public function Virtual Const

bool

 

IsNodeRefValid

(
    NavNodeRef NodeRef
)

Determines whether the specified NavNodeRef is still valid

Public function Virtual Const

bool

 

ProjectPoint

(
    const FVector& Point,
    FNavLocation& OutLocation,
    const FVector& Extent,
    FSharedConstNavQueryFilter Filter,
    const UObject* Querier
)

Tries to project given Point to this navigation type, within given Extent.