Space Engineers
Classes | Public Member Functions | Properties | List of all members
Sandbox.Game.AI.Pathfinding.MyNavmeshManager Class Reference

Classes

class  CoordComparer
 
class  OBBCoordComparer
 

Public Member Functions

 MyNavmeshManager (MyRDPathfinding rdPathfinding, Vector3D center, Vector3D forwardDirection, int tileSize, int tileHeight, int tileLineCount, MyRecastOptions recastOptions)
 
bool InvalidateArea (BoundingBoxD areaAABB)
 Checks if the manager intersects the given OBB. More...
 
bool ContainsPosition (Vector3D position)
 Checks if the given point is within the bounds of the navmesh More...
 
void TilesToGenerate (Vector3D initialPosition, Vector3D targetPosition)
 Saves the tiles that need to be generated More...
 
bool GetPathPoints (Vector3D initialPosition, Vector3D targetPosition, out List< Vector3D > path, out bool noTilesToGenerate)
 Delivers the path and returns true if the path contains the target position More...
 
bool Update ()
 Updates the navmesh manager by generating the next necessary tile and updates the debug mesh. Returns false if the manager is no longer valid - it was unloaded. More...
 
void UnloadData ()
 Clears the data More...
 
void DebugDraw ()
 

Properties

Vector3D Center [get]
 
MyOrientedBoundingBoxD CenterOBB [get]
 
MyPlanet Planet [get]
 
bool TilesAreWaitingGeneration [get]
 
bool DrawNavmesh [get, set]
 

Detailed Description

Definition at line 15 of file MyNavmeshManager.cs.

Constructor & Destructor Documentation

Sandbox.Game.AI.Pathfinding.MyNavmeshManager.MyNavmeshManager ( MyRDPathfinding  rdPathfinding,
Vector3D  center,
Vector3D  forwardDirection,
int  tileSize,
int  tileHeight,
int  tileLineCount,
MyRecastOptions  recastOptions 
)
inline

Definition at line 119 of file MyNavmeshManager.cs.

Member Function Documentation

bool Sandbox.Game.AI.Pathfinding.MyNavmeshManager.ContainsPosition ( Vector3D  position)
inline

Checks if the given point is within the bounds of the navmesh

Parameters
position
Returns
Returns true if the point is within bounds

Definition at line 222 of file MyNavmeshManager.cs.

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

Definition at line 383 of file MyNavmeshManager.cs.

bool Sandbox.Game.AI.Pathfinding.MyNavmeshManager.GetPathPoints ( Vector3D  initialPosition,
Vector3D  targetPosition,
out List< Vector3D path,
out bool  noTilesToGenerate 
)
inline

Delivers the path and returns true if the path contains the target position

Parameters
initialPosition
targetPosition
path
finalPathThe returned path is final - "targetPosition was reached" OR "cannot be reached"
Returns

Definition at line 248 of file MyNavmeshManager.cs.

bool Sandbox.Game.AI.Pathfinding.MyNavmeshManager.InvalidateArea ( BoundingBoxD  areaAABB)
inline

Checks if the manager intersects the given OBB.

Parameters
areaAABB
Returns

Definition at line 163 of file MyNavmeshManager.cs.

void Sandbox.Game.AI.Pathfinding.MyNavmeshManager.TilesToGenerate ( Vector3D  initialPosition,
Vector3D  targetPosition 
)
inline

Saves the tiles that need to be generated

Parameters
initialPosition
targetPosition
Returns

Definition at line 234 of file MyNavmeshManager.cs.

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

Clears the data

Definition at line 350 of file MyNavmeshManager.cs.

bool Sandbox.Game.AI.Pathfinding.MyNavmeshManager.Update ( )
inline

Updates the navmesh manager by generating the next necessary tile and updates the debug mesh. Returns false if the manager is no longer valid - it was unloaded.

Returns

Definition at line 331 of file MyNavmeshManager.cs.

Property Documentation

Vector3D Sandbox.Game.AI.Pathfinding.MyNavmeshManager.Center
get

Definition at line 96 of file MyNavmeshManager.cs.

MyOrientedBoundingBoxD Sandbox.Game.AI.Pathfinding.MyNavmeshManager.CenterOBB
get

Definition at line 98 of file MyNavmeshManager.cs.

bool Sandbox.Game.AI.Pathfinding.MyNavmeshManager.DrawNavmesh
getset

Definition at line 105 of file MyNavmeshManager.cs.

MyPlanet Sandbox.Game.AI.Pathfinding.MyNavmeshManager.Planet
get

Definition at line 100 of file MyNavmeshManager.cs.

bool Sandbox.Game.AI.Pathfinding.MyNavmeshManager.TilesAreWaitingGeneration
get

Definition at line 102 of file MyNavmeshManager.cs.


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