Navigation
API > API/Plugins > API/Plugins/NavCorridor
Inheritance Hierarchy
- TSharedFromThis
- FNavCorridor
References
| Module | NavCorridor |
| Header | /Engine/Plugins/Runtime/NavCorridor/Source/NavCorridor/Public/NavCorridor.h |
| Include | #include "NavCorridor.h" |
Syntax
struct FNavCorridor : public TSharedFromThis< FNavCorridor >
Remarks
Navigation corridor defines free space around path. It is expanded from a string pulled path. The corridor is represented as an array of portals, which leaves convex sectors in between them.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FNavCorridorPortal > | Portals | Portal points defining the corridor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FNavCorridorLocation | AdvancePathLocation
(
const FNavCorridorLocation& PathLocation, |
Advances path location along the path that goes through the corridor. | |
| void | BuildFromPath
(
const FNavigationPath& Path, |
Builds the corridor from a given Path. | |
| void | BuildFromPathPoints
(
const FNavigationPath& Path, |
Builds the corridor from a given array of Path points | |
| FVector | ConstrainVisibility
(
const FNavCorridorLocation& PathLocation, |
||
| FNavCorridorLocation | FindNearestLocationOnPath
(
const FVector Location |
Finds nearest location on path going through the corridor. | |
| FVector::FReal | GetDistanceToEndOfPath
(
const FNavCorridorLocation& PathLocation |
||
| FVector | GetPathDirection
(
const FNavCorridorLocation& PathLocation |
||
| bool | HitTest
(
const FVector SegmentStart, |
||
| bool | IsValid () |
||
| void | OffsetPathLocationsFromWalls
(
const float Offset, |
Offsets the path locations away from walls. | |
| void | Reset () |
Resets and empties the corridor. |