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

Class that contains the OBBs that are used to obtain tiled mesh (ground and grid), used by Pathfinding More...

Classes

struct  OBBCoords
 

Public Types

enum  OBBCorner {
  OBBCorner.UpperFrontLeft = 0, OBBCorner.UpperBackLeft, OBBCorner.LowerBackLeft, OBBCorner.LowerFrontLeft,
  OBBCorner.UpperFrontRight, OBBCorner.UpperBackRight, OBBCorner.LowerBackRight, OBBCorner.LowerFrontRight
}
 

Public Member Functions

 MyNavmeshOBBs (MyPlanet planet, Vector3D centerPoint, Vector3D forwardDirection, int obbsPerLine, int tileSize, int tileHeight)
 
MyOrientedBoundingBoxD GetOBB (int coordX, int coordY)
 Return the OBB at the specific coordinate or null, if is out of bounds More...
 
MyOrientedBoundingBoxD GetOBB (Vector3D worldPosition)
 Return the OBB at the specific position, or null, if is out of bounds More...
 
OBBCoords GetOBBCoord (int coordX, int coordY)
 Return the OBB coord at the specific coordinate or null, if is out of bounds More...
 
OBBCoords GetOBBCoord (Vector3D worldPosition)
 Return the OBB coord at the specific position, or null, if is out of bounds More...
 
List< OBBCoordsGetIntersectedOBB (LineD line)
 Returns a list of OBBs intersected by a line More...
 
void DebugDraw ()
 Debug draws the OBBs More...
 
void Clear ()
 

Static Public Member Functions

static Vector3D GetOBBCorner (MyOrientedBoundingBoxD obb, OBBCorner corner)
 Returns the specified corner from the OBB. More...
 

Properties

int OBBsPerLine [get]
 
MyOrientedBoundingBoxD BaseOBB [get]
 
MyOrientedBoundingBoxD CenterOBB [get]
 
List< Vector3DNeighboursCenters [get]
 

Detailed Description

Class that contains the OBBs that are used to obtain tiled mesh (ground and grid), used by Pathfinding

Definition at line 16 of file MyNavmeshOBBs.cs.

Member Enumeration Documentation

Enumerator
UpperFrontLeft 
UpperBackLeft 
LowerBackLeft 
LowerFrontLeft 
UpperFrontRight 
UpperBackRight 
LowerBackRight 
LowerFrontRight 

Definition at line 450 of file MyNavmeshOBBs.cs.

Constructor & Destructor Documentation

Sandbox.Game.AI.Pathfinding.MyNavmeshOBBs.MyNavmeshOBBs ( MyPlanet  planet,
Vector3D  centerPoint,
Vector3D  forwardDirection,
int  obbsPerLine,
int  tileSize,
int  tileHeight 
)
inline

Definition at line 50 of file MyNavmeshOBBs.cs.

Member Function Documentation

void Sandbox.Game.AI.Pathfinding.MyNavmeshOBBs.Clear ( )
inline

Definition at line 265 of file MyNavmeshOBBs.cs.

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

Debug draws the OBBs

Definition at line 197 of file MyNavmeshOBBs.cs.

List<OBBCoords> Sandbox.Game.AI.Pathfinding.MyNavmeshOBBs.GetIntersectedOBB ( LineD  line)
inline

Returns a list of OBBs intersected by a line

Definition at line 147 of file MyNavmeshOBBs.cs.

MyOrientedBoundingBoxD Sandbox.Game.AI.Pathfinding.MyNavmeshOBBs.GetOBB ( int  coordX,
int  coordY 
)
inline

Return the OBB at the specific coordinate or null, if is out of bounds

Definition at line 78 of file MyNavmeshOBBs.cs.

MyOrientedBoundingBoxD Sandbox.Game.AI.Pathfinding.MyNavmeshOBBs.GetOBB ( Vector3D  worldPosition)
inline

Return the OBB at the specific position, or null, if is out of bounds

Definition at line 91 of file MyNavmeshOBBs.cs.

OBBCoords Sandbox.Game.AI.Pathfinding.MyNavmeshOBBs.GetOBBCoord ( int  coordX,
int  coordY 
)
inline

Return the OBB coord at the specific coordinate or null, if is out of bounds

Definition at line 112 of file MyNavmeshOBBs.cs.

OBBCoords Sandbox.Game.AI.Pathfinding.MyNavmeshOBBs.GetOBBCoord ( Vector3D  worldPosition)
inline

Return the OBB coord at the specific position, or null, if is out of bounds

Definition at line 125 of file MyNavmeshOBBs.cs.

static Vector3D Sandbox.Game.AI.Pathfinding.MyNavmeshOBBs.GetOBBCorner ( MyOrientedBoundingBoxD  obb,
OBBCorner  corner 
)
inlinestatic

Returns the specified corner from the OBB.

Parameters
obb
corner
Returns
Returns the

Definition at line 468 of file MyNavmeshOBBs.cs.

Property Documentation

MyOrientedBoundingBoxD Sandbox.Game.AI.Pathfinding.MyNavmeshOBBs.BaseOBB
get

Definition at line 38 of file MyNavmeshOBBs.cs.

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

Definition at line 41 of file MyNavmeshOBBs.cs.

List<Vector3D> Sandbox.Game.AI.Pathfinding.MyNavmeshOBBs.NeighboursCenters
get

Definition at line 46 of file MyNavmeshOBBs.cs.

int Sandbox.Game.AI.Pathfinding.MyNavmeshOBBs.OBBsPerLine
get

Definition at line 36 of file MyNavmeshOBBs.cs.


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