Quantum 3
3.0.9
The result object for FindPath requests. More...
Public Types | |
| enum | Code |
| The result codes for FindPath requests. More... | |
Static Public Member Functions | |
| static FindPathResult | CreateError (Code errorCode) |
| Create a failed FindPathResult. More... | |
| static FindPathResult | CreateSuccess (FPVector3 correctedStartPosition, FPVector3 correctedEndPosition) |
| Create a successful FindPathResult. More... | |
Public Attributes | |
| FPVector3 | CorrectedEndPosition |
| The corrected or unchanged end position. More... | |
| FPVector3 | CorrectedStartPosition |
| The possibly corrected or unchanged start position. More... | |
| readonly PathVertex[] | Path => _pathFinderData != null ? _pathFinderData.Path : null |
| The funneled and optimized path. Never cache this array it's only valid after one FindPath() call. More... | |
| readonly int | PathSize => _pathFinderData != null ? _pathFinderData.PathSize : 0 |
| The size of the path. More... | |
| readonly PathVertex[] | RawPath => _pathFinderData != null ? _pathFinderData.RawPath : null |
| The raw unoptimized a* path. Never cache this array it's only valid after one FindPath() call. More... | |
| readonly int | RawPathSize => _pathFinderData != null ? _pathFinderData.RawPathSize : 0 |
| The raw path size. More... | |
| Code | Result |
| Pathfinding result. More... | |
Properties | |
| IPathFinderData | PathFinderData [set] |
| Set the internal pathfinder data for this result. Access is granted through PathSize etc. More... | |
The result object for FindPath requests.
|
strong |
The result codes for FindPath requests.
|
inlinestatic |
Create a successful FindPathResult.
| correctedStartPosition | The corrected (NavMeshAgentConfig.AutomaticTargetCorrection) start position. |
| correctedEndPosition | The corrected (NavMeshAgentConfig.AutomaticTargetCorrection) end position. |
|
inlinestatic |
Create a failed FindPathResult.
| errorCode | Error code |
| Code Quantum.Navigation.FindPathResult.Result |
Pathfinding result.
| FPVector3 Quantum.Navigation.FindPathResult.CorrectedStartPosition |
The possibly corrected or unchanged start position.
| FPVector3 Quantum.Navigation.FindPathResult.CorrectedEndPosition |
The corrected or unchanged end position.
| readonly int Quantum.Navigation.FindPathResult.PathSize => _pathFinderData != null ? _pathFinderData.PathSize : 0 |
The size of the path.
| readonly PathVertex [] Quantum.Navigation.FindPathResult.Path => _pathFinderData != null ? _pathFinderData.Path : null |
The funneled and optimized path. Never cache this array it's only valid after one FindPath() call.
| readonly int Quantum.Navigation.FindPathResult.RawPathSize => _pathFinderData != null ? _pathFinderData.RawPathSize : 0 |
The raw path size.
| readonly PathVertex [] Quantum.Navigation.FindPathResult.RawPath => _pathFinderData != null ? _pathFinderData.RawPath : null |
The raw unoptimized a* path. Never cache this array it's only valid after one FindPath() call.
|
set |
Set the internal pathfinder data for this result. Access is granted through PathSize etc.