Class RouteProbingUtils
Inheritance
System.Object
RouteProbingUtils
Namespace: Eco.Simulation.RouteProbing
Assembly: Eco.Simulation.dll
Syntax
public static class RouteProbingUtils : Object
Methods
FindRandomGroundRoute(Vector3, Vector3, Single, Single, Vector2, Vector2, RouteProperties, Int32, Int32, Int32, Boolean)
Returns the random path as the ground positions.
Declaration
public static AStarSearch FindRandomGroundRoute(Vector3 facing, Vector3 groundPosition, float minRadius, float maxRadius, Vector2 originDirection, Vector2 targetDirection, RouteProperties routeProps = null, int tryCount = 10, int maxQueue = 1000, int maxSteps = 40, bool requireFlat = false)
Parameters
Type | Name | Description |
---|---|---|
System.Numerics.Vector3 | facing | |
System.Numerics.Vector3 | groundPosition | |
System.Single | minRadius | |
System.Single | maxRadius | |
Vector2 | originDirection | |
Vector2 | targetDirection | |
RouteProperties | routeProps | |
System.Int32 | tryCount | |
System.Int32 | maxQueue | |
System.Int32 | maxSteps | |
System.Boolean | requireFlat | When true only flat ground will be considered walkable. |
Returns
Type | Description |
---|---|
AStarSearch |