Interface IMyVoxelShape
Describes voxel shape for filling or excavating
Namespace: VRage.Game.ModAPI
Assembly: VRage.Game.dll
Syntax
public interface IMyVoxelShape
Properties
Transform
World matrix of voxel shape
Declaration
MatrixD Transform { get; set; }
Property Value
Type | Description |
---|---|
MatrixD |
Methods
GetIntersectionVolume(ref Vector3D)
Gets volume of intersection of shape and voxel
Declaration
float GetIntersectionVolume(ref Vector3D voxelPosition)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | voxelPosition | Left bottom point of voxel |
Returns
Type | Description |
---|---|
System.Single | Normalized volume of intersection |
GetWorldBoundary()
Gets current world boundaries
Declaration
BoundingBoxD GetWorldBoundary()
Returns
Type | Description |
---|---|
BoundingBoxD |
PeekWorldBoundary(ref Vector3D)
Peeks world boundaries at given position
Declaration
BoundingBoxD PeekWorldBoundary(ref Vector3D targetPosition)
Parameters
Type | Name | Description |
---|---|---|
Vector3D | targetPosition |
Returns
Type | Description |
---|---|
BoundingBoxD |