Choose your operating system:
Windows
macOS
Linux
| TSharedFromThis
|
Module |
|
Header |
/Engine/Source/Runtime/AIModule/Classes/Navigation/MetaNavMeshPath.h |
Include |
#include "Navigation/MetaNavMeshPath.h" |
struct FMetaNavMeshPath : public FNavMeshPath
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:
start location set to agent location
end location set to target waypoint (or goal actor for last one)
goal actor set only for last section
Since path updates itself for moving agent it really shouldn't be reused by others.
Name | Description | ||
---|---|---|---|
|
float |
ApproximateLength |
Sum of 3D distance along waypoints, used for approximating length of path |
|
TWeakObjectPtr<... |
PathGoal |
Stored goal actor |
|
float |
PathGoalTetherDistance |
Stored goal actor's tether distance |
|
TargetWaypointIdx |
Current target of path following |
|
|
Waypoints |
List of waypoints, including start and end of path |
|
|
float |
WaypointSwitchRadius |
Update navmesh path when this close to target waypoint |
Name | Description | |
---|---|---|
|
FMetaNavMeshPath() |
|
|
FMetaNavMeshPath ( |
|
|
FMetaNavMeshPath ( |
|
|
FMetaNavMeshPath ( |
|
|
FMetaNavMeshPath ( |
Name | Description | ||
---|---|---|---|
|
ConditionalMoveToNextSection ( |
Try switching to next waypoint, depends on WaypointSwitchRadius |
|
|
CopyFrom ( |
Copy properties of other meta path |
|
|
ForceMoveToNextSection ( |
Force switching to next waypoint |
|
|
AActor * |
GetMetaPathGoal() |
Returns cached path goal |
|
GetNumWaypoints() |
Returns number of waypoints |
|
|
GetTargetWaypointIndex() |
Returns index of current target waypoint |
|
|
const TArray... |
GetWaypointArray() |
Returns waypoint array |
|
float |
GetWaypointSwitchRadius() |
Returns radius for switching to next waypoint during path following |
|
Initialize ( |
Initialize path for path following |
|
|
IsLastSection() |
Returns true if path at last waypoint |
|
|
MoveToNextSection ( |
Switch to next waypoint |
|
|
SetWaypoints ( |
Tries to set waypoints, fails when path is ready being followed |
|
|
SetWaypoints |
Tries to set waypoints, fails when path is ready being followed |
|
|
SetWaypointSwitchRadius ( |
Sets radius for switching to next waypoint during path following |
|
|
UpdatePath ( |
Updates underlying navmesh path for current target waypoint |
Name | Description | ||
---|---|---|---|
|
DebugDraw ( |
||
|
DescribeSelfToVisLog ( |
||
|
float |
GetCostFromIndex ( |
Returns approximate length of path, ignores parameter |
|
float |
GetLengthFromPosition |
Returns approximate length of path, ignores parameters |
Name |
Description |
---|---|
Super |
Name |
Description |
---|---|
Type |
Name | Description | ||
---|---|---|---|
|
GetWaypoints() |
Waypoint type of MetaPaths has been changed. Use the new GetWaypointArray |