dtQuerySpecialLinkFilter

By default [dtQueryFilter](API\Runtime\Navmesh\Detour\dtQueryFilter) will use virtual calls.

Windows
MacOS
Linux

References

Module

Navmesh

Header

/Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMeshQuery.h

Include

#include "Detour/DetourNavMeshQuery.h"

Syntax

struct dtQuerySpecialLinkFilter

Remarks

By default dtQueryFilter will use virtual calls. On certain platforms indirect or virtual function call is expensive. The default setting is to use non-virtual functions, the actual implementations of the functions are declared as inline for maximum speed. To avoid virtual calls create dtQueryFilter with inIsVirtual = false. Special link filter is custom filter run only for offmesh links with assigned UserId Used by smart navlinks in UE4

Destructors

Name Description

Public function Virtual

~dtQuerySpecialLinkFilter()

Functions

Name Description

Public function Virtual

void

 

initialize()

Called before accessing in A* loop (can be called multiple time for updateSlicedFindPath)

Public function Virtual Const

bool

 

isLinkAllowed

(
    const int UserId
)

Returns true if special link can be visited. (I.e. Is traversable.)

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