Quantum 3
3.0.9
Navmesh TA* pathfinder class. More...
Public Member Functions | |
| PathFinder (Native.Allocator allocator, Int32 openNodesSize, Int32 rawPathSize=256, RawPathAllocationStrategy rawPathAllocationStrategy=RawPathAllocationStrategy.Fixed) | |
| Create a pathfinder object. More... | |
| PathFinder (Native.Allocator allocator, NavMesh navmesh, Int32 rawPathSize=256, RawPathAllocationStrategy rawPathAllocationStrategy=RawPathAllocationStrategy.Fixed) | |
| Create a pathfinder for a certain navmesh. More... | |
| void | Dispose () |
| Dispose the pathfinder object. More... | |
| FindPathResult | FindPath (FrameThreadSafe frame, FPVector2 start, FPVector2 end, bool automaticTargetCorrection, FP automaticTargetCorrectionRadius, in NavMeshRegionMask regionMask, PathQuality quality=PathQuality.Good, NavMesh navmesh=null) |
| Find path. More... | |
| FindPathResult | FindPath (FrameThreadSafe frame, FPVector3 start, FPVector3 end, bool automaticTargetCorrection, FP automaticTargetCorrectionRadius, in NavMeshRegionMask regionMask, PathQuality quality=PathQuality.Good, NavMesh navmesh=null) |
| See FindPath(FrameThreadSafe, FPVector2, FPVector2, bool, FP, in NavMeshRegionMask, PathQuality, NavMesh) More... | |
| void | SetNavMesh (NavMesh navmesh) |
| Bind a navmesh to a pathfinder. More... | |
Public Attributes | |
| PathVertex[] | Path => _funnel |
| THe funneled path. More... | |
| Int32 | PathSize => _funneledPathSize |
| The funneled path size. More... | |
| PathVertex[] | RawPath => _rawPath |
| The un-funneled raw path. More... | |
| Int32 | RawPathSize => _rawPathSize |
| The size of the RawPath. More... | |
Additional Inherited Members | |
Properties inherited from Quantum.Navigation.IPathFinderData | |
| PathVertex[] | Path [get] |
| The path. More... | |
| Int32 | PathSize [get] |
| The path size. More... | |
| PathVertex[] | RawPath [get] |
| The raw, unfunneled path More... | |
| Int32 | RawPathSize [get] |
| The raw path size. More... | |
Navmesh TA* pathfinder class.
|
inline |
Create a pathfinder object.
| allocator | Allocator |
| openNodesSize | The maximum number of open nodes the A* can work with (usually Navigation.Constants.PathFinderSize |
| rawPathSize | The raw path size |
| rawPathAllocationStrategy | Fail path or allocate when above rawPathSize |
|
inline |
Create a pathfinder for a certain navmesh.
Uses the triangle count as pathfinder size.
| allocator | Allocator |
| navmesh | Navmesh object |
| rawPathSize | The raw path size |
| rawPathAllocationStrategy | Fail path or allocate when above rawPathSize |
|
inline |
Bind a navmesh to a pathfinder.
| navmesh | Navmesh object |
|
inline |
Dispose the pathfinder object.
|
inline |
Find path.
| frame | The frame object. |
| start | Starting position |
| end | Target position |
| automaticTargetCorrection | If the target is outside the navmesh the position will be tried to be corrected. |
| automaticTargetCorrectionRadius | The range of cells used to validated the target position. |
| regionMask | Region mask is used to check if navmesh parts are active or inactive |
| quality | The path quality |
| navmesh | The navmesh to operate on |
|
inline |
| Int32 Quantum.Navigation.PathFinder.RawPathSize => _rawPathSize |
The size of the RawPath.
| PathVertex [] Quantum.Navigation.PathFinder.RawPath => _rawPath |
The un-funneled raw path.
| Int32 Quantum.Navigation.PathFinder.PathSize => _funneledPathSize |
The funneled path size.
| PathVertex [] Quantum.Navigation.PathFinder.Path => _funnel |
THe funneled path.