engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | Protected 属性 | 所有成员列表
FMetaNavMeshPath结构体 参考

FMetaNavMeshPath allows creating hierarchical or guided navmesh paths 更多...

#include <MetaNavMeshPath.h>

继承自 FNavMeshPath .

Public 成员函数

virtual bool ConditionalMoveToNextSection (const FVector &AgentLocation, EMetaPathUpdateReason Reason)
 try switching to next waypoint, depends on WaypointSwitchRadius
 
virtual void CopyFrom (const FMetaNavMeshPath &Other)
 copy properties of other meta path
 
bool ForceMoveToNextSection (const FVector &AgentLocation)
 force switching to next waypoint
 
virtual float GetCostFromIndex (int32 PathPointIndex) const override
 returns approximate length of path, ignores parameter
 
virtual float GetLengthFromPosition (FVector SegmentStart, uint32 NextPathPointIndex) const override
 returns approximate length of path, ignores parameters
 
AActor * GetMetaPathGoal () const
 returns cached path goal
 
int32 GetNumWaypoints () const
 returns number of waypoints
 
int32 GetTargetWaypointIndex () const
 returns index of current target waypoint
 
const TArray< FMetaPathWayPoint > & GetWaypointArray () const
 returns waypoint array
 
float GetWaypointSwitchRadius () const
 returns radius for switching to next waypoint during path following
 
virtual void Initialize (const FVector &AgentLocation)
 initialize path for path following
 
bool IsLastSection () const
 returns true if path at last waypoint
 
bool SetWaypoints (const TArray< FMetaPathWayPoint > &InWaypoints)
 tries to set waypoints, fails when path is ready being followed
 
bool SetWaypoints (const TArray< FVector > &InWaypoints)
 tries to set waypoints, fails when path is ready being followed
 
void SetWaypointSwitchRadius (float InSwitchRadius)
 sets radius for switching to next waypoint during path following
 
virtual bool UpdatePath (const FVector &AgentLocation)
 updates underlying navmesh path for current target waypoint
 

Protected 成员函数

bool MoveToNextSection (const FVector &AgentLocation)
 switch to next waypoint

 

Protected 属性

float ApproximateLength
 sum of 3D distance along waypoints, used for approximating length of path
 
TWeakObjectPtr< AActor > PathGoal
 stored goal actor
 
float PathGoalTetherDistance
 stored goal actor's tether distance
 
int32 TargetWaypointIdx
 current target of path following
 
TArray< FMetaPathWayPoint > Waypoints
 list of waypoints, including start and end of path
 
float WaypointSwitchRadius
 update navmesh path when this close to target waypoint
 

详细描述

FMetaNavMeshPath allows creating hierarchical or guided navmesh paths

Waypoints array defines list of locations that will be used to create actual FNavMeshPath data during path following. On path following start and upon reaching waypoint, path will request update from owning navmesh with following parameters:

Since path updates itself for moving agent it really shouldn't be reused by others.


该结构体的文档由以下文件生成: