Space Engineers
Classes | Public Member Functions | Static Public Member Functions | List of all members
Sandbox.Game.AI.Pathfinding.MyRDPathfinding Class Reference
Inheritance diagram for Sandbox.Game.AI.Pathfinding.MyRDPathfinding:
Sandbox.Game.AI.Pathfinding.IMyPathfinding

Public Member Functions

 MyRDPathfinding ()
 
IMyPath FindPathGlobal (Vector3D begin, IMyDestinationShape end, MyEntity relativeEntity)
 Finds a path from the world-space point begin to the given destination shape. More...
 
bool ReachableUnderThreshold (Vector3D begin, IMyDestinationShape end, float thresholdDistance)
 Checks, whether the given destination is reachable, but stops the search after some threshold distance. More...
 
IMyPathfindingLog GetPathfindingLog ()
 Backwards compatibility More...
 
void Update ()
 Recieves periodic updates from the game loop More...
 
void UnloadData ()
 Gets called when the MyAIComponent is unloaded More...
 
void DebugDraw ()
 All the debug draw code should go here More...
 
List< Vector3DGetPath (MyPlanet planet, Vector3D initialPosition, Vector3D targetPosition)
 Returns the path between given positions. More...
 
bool AddToTrackedGrids (MyCubeGrid cubeGrid)
 Adds to the tracked grids so the changes to it are followed More...
 
void InvalidateArea (BoundingBoxD areaBox)
 Invalidates intersected tiles of navmesh managers, if they were generated More...
 
void SetDrawNavmesh (bool drawNavmesh)
 Enables or disables the drawing of the navmesh. More...
 

Static Public Member Functions

static BoundingBoxD GetVoxelAreaAABB (MyVoxelBase storage, Vector3I minVoxelChanged, Vector3I maxVoxelChanged)
 

Detailed Description

Definition at line 17 of file MyRDPathfinding.cs.

Constructor & Destructor Documentation

Sandbox.Game.AI.Pathfinding.MyRDPathfinding.MyRDPathfinding ( )
inline

Definition at line 47 of file MyRDPathfinding.cs.

Member Function Documentation

bool Sandbox.Game.AI.Pathfinding.MyRDPathfinding.AddToTrackedGrids ( MyCubeGrid  cubeGrid)
inline

Adds to the tracked grids so the changes to it are followed

Parameters
cubeGrid
Returns

Definition at line 167 of file MyRDPathfinding.cs.

void Sandbox.Game.AI.Pathfinding.MyRDPathfinding.DebugDraw ( )
inline

All the debug draw code should go here

Implements Sandbox.Game.AI.Pathfinding.IMyPathfinding.

Definition at line 115 of file MyRDPathfinding.cs.

IMyPath Sandbox.Game.AI.Pathfinding.MyRDPathfinding.FindPathGlobal ( Vector3D  begin,
IMyDestinationShape  end,
MyEntity  relativeEntity 
)
inline

Finds a path from the world-space point begin to the given destination shape.

Parameters
beginFrom where to do the pathfinding
endThe destination shape for this pathfinding query
relativeEntityIf not null, the begin parameter is not in world space, but in local space relative to this entity
Returns
The found path if any, null otherwise

Implements Sandbox.Game.AI.Pathfinding.IMyPathfinding.

Definition at line 55 of file MyRDPathfinding.cs.

List<Vector3D> Sandbox.Game.AI.Pathfinding.MyRDPathfinding.GetPath ( MyPlanet  planet,
Vector3D  initialPosition,
Vector3D  targetPosition 
)
inline

Returns the path between given positions.

Parameters
initialPosition
targetPosition
Returns

Definition at line 144 of file MyRDPathfinding.cs.

IMyPathfindingLog Sandbox.Game.AI.Pathfinding.MyRDPathfinding.GetPathfindingLog ( )
inline

Backwards compatibility

Implements Sandbox.Game.AI.Pathfinding.IMyPathfinding.

Definition at line 81 of file MyRDPathfinding.cs.

static BoundingBoxD Sandbox.Game.AI.Pathfinding.MyRDPathfinding.GetVoxelAreaAABB ( MyVoxelBase  storage,
Vector3I  minVoxelChanged,
Vector3I  maxVoxelChanged 
)
inlinestatic

Definition at line 129 of file MyRDPathfinding.cs.

void Sandbox.Game.AI.Pathfinding.MyRDPathfinding.InvalidateArea ( BoundingBoxD  areaBox)
inline

Invalidates intersected tiles of navmesh managers, if they were generated

Parameters
areaBox

Definition at line 182 of file MyRDPathfinding.cs.

bool Sandbox.Game.AI.Pathfinding.MyRDPathfinding.ReachableUnderThreshold ( Vector3D  begin,
IMyDestinationShape  end,
float  thresholdDistance 
)
inline

Checks, whether the given destination is reachable, but stops the search after some threshold distance.

Parameters
beginWhere to start the search from
endThe destination for the reachability query
thresholdDistanceThe distance after which the query should stop
Returns
True if the destination is reachable, false if it could not be found after the given threshold distance

Implements Sandbox.Game.AI.Pathfinding.IMyPathfinding.

Definition at line 72 of file MyRDPathfinding.cs.

void Sandbox.Game.AI.Pathfinding.MyRDPathfinding.SetDrawNavmesh ( bool  drawNavmesh)
inline

Enables or disables the drawing of the navmesh.

Parameters
drawNavmesh

Definition at line 192 of file MyRDPathfinding.cs.

void Sandbox.Game.AI.Pathfinding.MyRDPathfinding.UnloadData ( )
inline

Gets called when the MyAIComponent is unloaded

Implements Sandbox.Game.AI.Pathfinding.IMyPathfinding.

Definition at line 99 of file MyRDPathfinding.cs.

void Sandbox.Game.AI.Pathfinding.MyRDPathfinding.Update ( )
inline

Recieves periodic updates from the game loop

Implements Sandbox.Game.AI.Pathfinding.IMyPathfinding.

Definition at line 86 of file MyRDPathfinding.cs.


The documentation for this class was generated from the following file: