IMyCubeGrid Methods |
[This is preliminary documentation and is subject to change.]
The IMyCubeGrid type exposes the following members.
Name | Description | |
---|---|---|
![]() | AddBlock |
Add a cubeblock to the grid
|
![]() | AddToGamePruningStructure | (Inherited from IMyEntity.) |
![]() | ApplyDestructionDeformation |
Applies random deformation to given block
|
![]() | BeforeSave | (Inherited from IMyEntity.) |
![]() | CalculateMergeTransform |
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
|
![]() | CanMergeCubes |
Determines if merge between grids is possible with given offset
|
![]() | ChangeGridOwnership |
Changes owner of all blocks on grid
Call only on server!
|
![]() | ClearSymmetries |
Clears symmetry planes
|
![]() | Close | (Inherited from IMyEntity.) |
![]() | ColorBlocks |
Sets given color mask to range of blocks
|
![]() | ConvertToDynamic |
Converts station to ship
|
![]() | CubeExists |
Returns true if there is any block occupying given position
|
![]() | DebugDraw | (Inherited from IMyEntity.) |
![]() | DebugDrawInvalidTriangles | (Inherited from IMyEntity.) |
![]() | Delete | (Inherited from IMyEntity.) |
![]() | DoOverlapSphereTest | (Inherited from IMyEntity.) |
![]() | EnableColorMaskForSubparts | (Inherited from IMyEntity.) |
![]() | FixTargetCube |
Clamps fractional grid position to nearest cell (prefers neighboring occupied cell before empty)
|
![]() | GetBlocks |
Returns blocks in grid
|
![]() | GetBlocksInsideSphere |
Returns blocks inside given sphere (world space)
|
![]() | GetChildren | (Inherited from IMyEntity.) |
![]() | GetClosestCorner |
Gets position of closest cell corner
|
![]() | GetCubeBlock |
Get cube block at given position
|
![]() | GetDiffuseColor | (Inherited from IMyEntity.) |
![]() | GetDistanceBetweenCameraAndBoundingSphere | (Inherited from IMyEntity.) |
![]() | GetDistanceBetweenCameraAndPosition | (Inherited from IMyEntity.) |
![]() | GetFriendlyName | (Inherited from IMyEntity.) |
![]() | GetIntersectionWithLineAndBoundingSphere | (Inherited from IMyEntity.) |
![]() | GetIntersectionWithSphere | (Inherited from IMyEntity.) |
![]() | GetLargestDistanceBetweenCameraAndBoundingSphere | (Inherited from IMyEntity.) |
![]() | GetLineIntersectionExactAll |
Returns point of intersection with line
|
![]() | GetLineIntersectionExactGrid |
Same as GetLineIntersectionExactAll just without intersected block
|
![]() | GetObjectBuilder | (Inherited from IMyEntity.) |
![]() | GetPosition | (Inherited from IMyEntity.) |
![]() | GetSmallestDistanceBetweenCameraAndBoundingSphere | (Inherited from IMyEntity.) |
![]() | GetSubpart | (Inherited from IMyEntity.) |
![]() | GetTopMostParent | (Inherited from IMyEntity.) |
![]() | GetTrianglesIntersectingSphere | (Inherited from IMyEntity.) |
![]() | GetViewMatrix | (Inherited from IMyEntity.) |
![]() | GetWorldMatrixNormalizedInv | (Inherited from IMyEntity.) |
![]() | GridIntegerToWorld |
Converts grid coordinates to world space
|
![]() | IsTouchingAnyNeighbor |
Finds out if given area has any neighboring block
|
![]() | IsTrash |
Algorithm used by game to define useless grids to be deleted
|
![]() | IsVisible | (Inherited from IMyEntity.) |
![]() | MergeGrid_MergeBlock |
Merge used by merge blocks
|
![]() | OnAddedToScene | (Inherited from IMyEntity.) |
![]() | OnRemovedFromScene | (Inherited from IMyEntity.) |
![]() | RayCastBlocks |
Returns cell with block intersecting given line
|
![]() | RayCastCells |
Returns list of cells with blocks intersected by line
|
![]() | RazeBlock |
Remove block at given position
|
![]() | RazeBlocks(ListVector3I) |
Remove blocks at given positions
|
![]() | RazeBlocks(Vector3I, Vector3UByte) |
Remove blocks in given area
|
![]() | RemoveBlock |
Removes given block
|
![]() | RemoveDestroyedBlock |
Removes block and deformates neighboring blocks
|
![]() | RemoveFromGamePruningStructure | (Inherited from IMyEntity.) |
![]() | SetColorMaskForSubparts | (Inherited from IMyEntity.) |
![]() | SetEmissiveParts |
Sets the emissive value of a specific emissive material on entity.
(Inherited from IMyEntity.) |
![]() | SetEmissivePartsForSubparts |
Sets the emissive value of a specific emissive material on all entity subparts.
(Inherited from IMyEntity.) |
![]() | SetLocalMatrix | (Inherited from IMyEntity.) |
![]() | SetPosition | (Inherited from IMyEntity.) |
![]() | SetWorldMatrix | (Inherited from IMyEntity.) |
![]() | TryGetSubpart | (Inherited from IMyEntity.) |
![]() | UpdateBlockNeighbours |
Refreshes block neighbors (checks connections)
|
![]() | UpdateGamePruningStructure | (Inherited from IMyEntity.) |
![]() | UpdateOwnership | |
![]() | WillRemoveBlockSplitGrid |
Checks if removing a block will cause the grid to split
|
![]() | WorldToGridInteger(Vector3D) | |
![]() | WorldToGridInteger(Vector3) |
Converts world coordinates to grid space cell coordinates
|