Path following augmented with local navigation grids 更多...
#include <GridPathFollowingComponent.h>
继承自 UPathFollowingComponent .
Protected 属性 | |
| int32 | ActiveGridId |
| Id of current grid | |
| int32 | ActiveGridIdx |
| index of current grid | |
| uint32 | bHasGridPath: 1 |
| set when grid path is valid | |
| uint32 | bIsPathEndInsideGrid: 1 |
| set when end of followed Path ends inside current grid | |
| int32 | GridMoveSegmentEndIndex |
| index of current destination grid path point | |
| TArray< FVector > | GridPathPoints |
| path points for moving through grid | |
| int32 | MoveSegmentStartIndexOffGrid |
| expected start of path segment after leaving grid | |
Path following augmented with local navigation grids
Keeps track of nearby grids and use them instead of navigation path when agent is inside. Once outside grid, regular path following is resumed.
This allows creating dynamic navigation obstacles with fully static navigation (e.g. static navmesh), as long as they are minor modifications for path. Not recommended for blocking off entire corridors.
Does not replace proper avoidance for dynamic obstacles!