|
| MyRDPath (MyRDPathfinding pathfinding, Vector3D begin, IMyDestinationShape destination) |
|
void | Invalidate () |
| Will be called on the path if it should be invalidated for any reason. Also, it the path is no longer needed, it should be invalidated to prevent holding references etc. More...
|
|
bool | GetNextTarget (Vector3D position, out Vector3D target, out float targetRadius, out IMyEntity relativeEntity) |
| Returns the next target along the path, provided that the agent is currently on the given position More...
|
|
void | Reinit (Vector3D position) |
| Reinitializes the path, starting from the given position. The target stays the same. The purpose of this is to try to move towards the goal again if PathCompleted returns true, but the target moved while going towards it. More...
|
|
void | DebugDraw () |
| Gets called every frame for the purposes of debug draw More...
|
|
Definition at line 12 of file MyRDPath.cs.
void Sandbox.Game.AI.Pathfinding.MyRDPath.DebugDraw |
( |
| ) |
|
|
inline |
bool Sandbox.Game.AI.Pathfinding.MyRDPath.GetNextTarget |
( |
Vector3D |
position, |
|
|
out Vector3D |
target, |
|
|
out float |
targetRadius, |
|
|
out IMyEntity |
relativeEntity |
|
) |
| |
|
inline |
Returns the next target along the path, provided that the agent is currently on the given position
- Parameters
-
position | Current position of the agent |
target | Next target for the agent to go to |
targetRadius | Destination radius allowing some tolerance for steering |
relativeEntity | If the target is relative to an entity, the entity will be returned in this argument (currently unused). |
- Returns
- True if the next target was successfully found
Implements Sandbox.Game.AI.Pathfinding.IMyPath.
Definition at line 51 of file MyRDPath.cs.
void Sandbox.Game.AI.Pathfinding.MyRDPath.Invalidate |
( |
| ) |
|
|
inline |
Will be called on the path if it should be invalidated for any reason. Also, it the path is no longer needed, it should be invalidated to prevent holding references etc.
Implements Sandbox.Game.AI.Pathfinding.IMyPath.
Definition at line 46 of file MyRDPath.cs.
void Sandbox.Game.AI.Pathfinding.MyRDPath.Reinit |
( |
Vector3D |
position | ) |
|
|
inline |
Reinitializes the path, starting from the given position. The target stays the same. The purpose of this is to try to move towards the goal again if PathCompleted returns true, but the target moved while going towards it.
- Parameters
-
position | The current position from which we want the pathfinding to be performed |
Implements Sandbox.Game.AI.Pathfinding.IMyPath.
Definition at line 92 of file MyRDPath.cs.
IMyEntity Sandbox.Game.AI.Pathfinding.MyRDPath.EndEntity |
|
get |
bool Sandbox.Game.AI.Pathfinding.MyRDPath.IsValid |
|
get |
bool Sandbox.Game.AI.Pathfinding.MyRDPath.PathCompleted |
|
get |
The documentation for this class was generated from the following file: