This repository was archived by the owner on Dec 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
VRage.Game.ModAPI.Ingame.IMyCubeGrid
Malware edited this page Dec 21, 2018
·
44 revisions
← Index
#IMyCubeGrid Interface
Namespace: VRage.Game.ModAPI.Ingame
Assembly: VRage.Game.dll
Implements:
-
VRage.Game.ModAPI.Ingame.IMyEntity##Summary Grid interface ###Properties |Member|Description| |---|---| |string CustomName|| |float GridSize|| |MyCubeSize GridSizeEnum|| |bool IsStatic|| |Vector3I Max|| |Vector3I Min|| |MyEntityComponentContainer Components|Inherited fromIMyEntity| |long EntityId|Inherited fromIMyEntity| |string Name|Inherited fromIMyEntity| |string DisplayName|Inherited fromIMyEntity| |bool HasInventory|Inherited fromIMyEntity| |int InventoryCount|Inherited fromIMyEntity| |BoundingBoxD WorldAABB|Inherited fromIMyEntity| |BoundingBoxD WorldAABBHr|Inherited fromIMyEntity| |MatrixD WorldMatrix|Inherited fromIMyEntity| |BoundingSphereD WorldVolume|Inherited fromIMyEntity| |BoundingSphereD WorldVolumeHr|Inherited fromIMyEntity| ###Methods |Member|Description| |---|---| |bool CubeExists(Vector3I pos)|Returns true if there is any block occupying given position| |IMySlimBlock GetCubeBlock(Vector3I pos)|Get cube block at given position| |Vector3D GridIntegerToWorld(Vector3I gridCoords)|Converts grid coordinates to world space| |Vector3I WorldToGridInteger(Vector3D coords)|Converts world coordinates to grid space cell coordinates| |bool IsSameConstructAs(IMyCubeGrid other)|Determines whether this grid is mechanically connected to the other. This is any grid connected with rotors or pistons or other mechanical devices, but not things like connectors. This will in most cases constitute your complete construct.
Be aware that using merge blocks combines grids into one, so this function will not filter out grids connected that way. Also be aware that detaching the heads of pistons and rotors will cause this connection to change.| |IMyInventory GetInventory()|Inherited fromIMyEntity| |IMyInventory GetInventory(int index)|Search for inventory component with maching index.
Inherited fromIMyEntity| |Vector3D GetPosition()|Inherited fromIMyEntity|
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!