Click or drag to resize
IMyCubeGrid Methods

[This is preliminary documentation and is subject to change.]

The IMyCubeGrid type exposes the following members.

Methods
  NameDescription
Public methodAddBlock
Add a cubeblock to the grid
Public methodAddToGamePruningStructure (Inherited from IMyEntity.)
Public methodApplyDestructionDeformation
Applies random deformation to given block
Public methodBeforeSave (Inherited from IMyEntity.)
Public methodCalculateMergeTransform
Transformation matrix that has to be applied to grid blocks to correctly merge it used because ie. ships can be turned 90 degrees along X axis when being merged
Public methodCanMergeCubes
Determines if merge between grids is possible with given offset
Public methodChangeGridOwnership
Changes owner of all blocks on grid Call only on server!
Public methodClearSymmetries
Clears symmetry planes
Public methodClose (Inherited from IMyEntity.)
Public methodColorBlocks
Sets given color mask to range of blocks
Public methodConvertToDynamic
Converts station to ship
Public methodCubeExists
Returns true if there is any block occupying given position
Public methodDebugDraw (Inherited from IMyEntity.)
Public methodDebugDrawInvalidTriangles (Inherited from IMyEntity.)
Public methodDelete (Inherited from IMyEntity.)
Public methodDoOverlapSphereTest (Inherited from IMyEntity.)
Public methodEnableColorMaskForSubparts (Inherited from IMyEntity.)
Public methodFixTargetCube
Clamps fractional grid position to nearest cell (prefers neighboring occupied cell before empty)
Public methodGetBlocks
Returns blocks in grid
Public methodGetBlocksInsideSphere
Returns blocks inside given sphere (world space)
Public methodGetChildren (Inherited from IMyEntity.)
Public methodGetClosestCorner
Gets position of closest cell corner
Public methodGetCubeBlock
Get cube block at given position
Public methodGetDiffuseColor (Inherited from IMyEntity.)
Public methodGetDistanceBetweenCameraAndBoundingSphere (Inherited from IMyEntity.)
Public methodGetDistanceBetweenCameraAndPosition (Inherited from IMyEntity.)
Public methodGetFriendlyName (Inherited from IMyEntity.)
Public methodGetIntersectionWithLineAndBoundingSphere (Inherited from IMyEntity.)
Public methodGetIntersectionWithSphere (Inherited from IMyEntity.)
Public methodGetLargestDistanceBetweenCameraAndBoundingSphere (Inherited from IMyEntity.)
Public methodGetLineIntersectionExactAll
Returns point of intersection with line
Public methodGetLineIntersectionExactGrid
Same as GetLineIntersectionExactAll just without intersected block
Public methodGetObjectBuilder (Inherited from IMyEntity.)
Public methodGetPosition (Inherited from IMyEntity.)
Public methodGetSmallestDistanceBetweenCameraAndBoundingSphere (Inherited from IMyEntity.)
Public methodGetSubpart (Inherited from IMyEntity.)
Public methodGetTopMostParent (Inherited from IMyEntity.)
Public methodGetTrianglesIntersectingSphere (Inherited from IMyEntity.)
Public methodGetViewMatrix (Inherited from IMyEntity.)
Public methodGetWorldMatrixNormalizedInv (Inherited from IMyEntity.)
Public methodGridIntegerToWorld
Converts grid coordinates to world space
Public methodIsTouchingAnyNeighbor
Finds out if given area has any neighboring block
Public methodIsTrash
Algorithm used by game to define useless grids to be deleted
Public methodIsVisible (Inherited from IMyEntity.)
Public methodMergeGrid_MergeBlock
Merge used by merge blocks
Public methodOnAddedToScene (Inherited from IMyEntity.)
Public methodOnRemovedFromScene (Inherited from IMyEntity.)
Public methodRayCastBlocks
Returns cell with block intersecting given line
Public methodRayCastCells
Returns list of cells with blocks intersected by line
Public methodRazeBlock
Remove block at given position
Public methodRazeBlocks(ListVector3I)
Remove blocks at given positions
Public methodRazeBlocks(Vector3I, Vector3UByte)
Remove blocks in given area
Public methodRemoveBlock
Removes given block
Public methodRemoveDestroyedBlock
Removes block and deformates neighboring blocks
Public methodRemoveFromGamePruningStructure (Inherited from IMyEntity.)
Public methodSetColorMaskForSubparts (Inherited from IMyEntity.)
Public methodSetEmissiveParts
Sets the emissive value of a specific emissive material on entity.
(Inherited from IMyEntity.)
Public methodSetEmissivePartsForSubparts
Sets the emissive value of a specific emissive material on all entity subparts.
(Inherited from IMyEntity.)
Public methodSetLocalMatrix (Inherited from IMyEntity.)
Public methodSetPosition (Inherited from IMyEntity.)
Public methodSetWorldMatrix (Inherited from IMyEntity.)
Public methodTryGetSubpart (Inherited from IMyEntity.)
Public methodUpdateBlockNeighbours
Refreshes block neighbors (checks connections)
Public methodUpdateGamePruningStructure (Inherited from IMyEntity.)
Public methodUpdateOwnership
Public methodWillRemoveBlockSplitGrid
Checks if removing a block will cause the grid to split
Public methodWorldToGridInteger(Vector3D)
Public methodWorldToGridInteger(Vector3)
Converts world coordinates to grid space cell coordinates
Top
See Also