Space Engineers
Public Member Functions | Properties | List of all members
VRage.Game.ModAPI.Ingame.IMyCubeGrid Interface Reference

Grid interface More...

Inheritance diagram for VRage.Game.ModAPI.Ingame.IMyCubeGrid:
VRage.Game.ModAPI.Ingame.IMyEntity VRage.Game.ModAPI.IMyCubeGrid Sandbox.Game.Entities.MyCubeGrid

Public Member Functions

bool CubeExists (VRageMath.Vector3I pos)
 Returns true if there is any block occupying given position More...
 
IMySlimBlock GetCubeBlock (VRageMath.Vector3I pos)
 Get cube block at given position More...
 
VRageMath.Vector3D GridIntegerToWorld (VRageMath.Vector3I gridCoords)
 Converts grid coordinates to world space More...
 
VRageMath.Vector3I WorldToGridInteger (VRageMath.Vector3D coords)
 Converts world coordinates to grid space cell coordinates More...
 
- Public Member Functions inherited from VRage.Game.ModAPI.Ingame.IMyEntity
VRageMath.Vector3D GetPosition ()
 

Properties

float GridSize [get]
 Grid size in meters More...
 
MyCubeSize GridSizeEnum [get]
 Grid size enum More...
 
bool IsStatic [get]
 Station = static More...
 
VRageMath.Vector3I Max [get]
 Maximum coordinates of blocks in grid More...
 
VRageMath.Vector3I Min [get]
 Minimum coordinates of blocks in grid More...
 
- Properties inherited from VRage.Game.ModAPI.Ingame.IMyEntity
MyEntityComponentContainer Components [get]
 
long EntityId [get]
 
VRageMath.BoundingBoxD WorldAABB [get]
 
VRageMath.BoundingBoxD WorldAABBHr [get]
 
VRageMath.MatrixD WorldMatrix [get]
 
VRageMath.BoundingSphereD WorldVolume [get]
 
VRageMath.BoundingSphereD WorldVolumeHr [get]
 

Detailed Description

Grid interface

Definition at line 9 of file IMyCubeGrid.cs.

Member Function Documentation

bool VRage.Game.ModAPI.Ingame.IMyCubeGrid.CubeExists ( VRageMath.Vector3I  pos)

Returns true if there is any block occupying given position

Implemented in Sandbox.Game.Entities.MyCubeGrid, and VRage.Game.ModAPI.IMyCubeGrid.

IMySlimBlock VRage.Game.ModAPI.Ingame.IMyCubeGrid.GetCubeBlock ( VRageMath.Vector3I  pos)

Get cube block at given position

Parameters
posBlock position
Returns
Block or null if none is present at given position

Implemented in Sandbox.Game.Entities.MyCubeGrid, and VRage.Game.ModAPI.IMyCubeGrid.

VRageMath.Vector3D VRage.Game.ModAPI.Ingame.IMyCubeGrid.GridIntegerToWorld ( VRageMath.Vector3I  gridCoords)

Converts grid coordinates to world space

Implemented in Sandbox.Game.Entities.MyCubeGrid, and VRage.Game.ModAPI.IMyCubeGrid.

VRageMath.Vector3I VRage.Game.ModAPI.Ingame.IMyCubeGrid.WorldToGridInteger ( VRageMath.Vector3D  coords)

Converts world coordinates to grid space cell coordinates

Implemented in VRage.Game.ModAPI.IMyCubeGrid.

Property Documentation

float VRage.Game.ModAPI.Ingame.IMyCubeGrid.GridSize
get

Grid size in meters

Definition at line 14 of file IMyCubeGrid.cs.

MyCubeSize VRage.Game.ModAPI.Ingame.IMyCubeGrid.GridSizeEnum
get

Grid size enum

Definition at line 19 of file IMyCubeGrid.cs.

bool VRage.Game.ModAPI.Ingame.IMyCubeGrid.IsStatic
get

Station = static

Definition at line 24 of file IMyCubeGrid.cs.

VRageMath.Vector3I VRage.Game.ModAPI.Ingame.IMyCubeGrid.Max
get

Maximum coordinates of blocks in grid

Definition at line 29 of file IMyCubeGrid.cs.

VRageMath.Vector3I VRage.Game.ModAPI.Ingame.IMyCubeGrid.Min
get

Minimum coordinates of blocks in grid

Definition at line 34 of file IMyCubeGrid.cs.


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