Space Engineers
Public Member Functions | Properties | List of all members
VRage.Game.ModAPI.IMyVoxelShape Interface Reference
Inheritance diagram for VRage.Game.ModAPI.IMyVoxelShape:
Sandbox.Engine.Voxels.MyShape VRage.Game.ModAPI.IMyVoxelShapeBox VRage.Game.ModAPI.IMyVoxelShapeCapsule VRage.Game.ModAPI.IMyVoxelShapeRamp VRage.Game.ModAPI.IMyVoxelShapeSphere Sandbox.Engine.Voxels.MyShapeBox Sandbox.Engine.Voxels.MyShapeCapsule Sandbox.Engine.Voxels.MyShapeEllipsoid Sandbox.Engine.Voxels.MyShapeRamp Sandbox.Engine.Voxels.MyShapeSphere Sandbox.Engine.Voxels.MyShapeBox Sandbox.Engine.Voxels.MyShapeCapsule Sandbox.Engine.Voxels.MyShapeRamp Sandbox.Engine.Voxels.MyShapeSphere

Public Member Functions

BoundingBoxD GetWorldBoundary ()
 Gets current world boundaries More...
 
BoundingBoxD PeekWorldBoundary (ref Vector3D targetPosition)
 Peeks world boundaries at given position More...
 
float GetIntersectionVolume (ref Vector3D voxelPosition)
 Gets volume of intersection of shape and voxel More...
 

Properties

MatrixD Transform [get, set]
 World matrix of voxel shape More...
 

Detailed Description

Definition at line 5 of file IMyVoxelShape.cs.

Member Function Documentation

float VRage.Game.ModAPI.IMyVoxelShape.GetIntersectionVolume ( ref Vector3D  voxelPosition)

Gets volume of intersection of shape and voxel

Parameters
voxelPositionLeft bottom point of voxel
Returns
Normalized volume of intersection
BoundingBoxD VRage.Game.ModAPI.IMyVoxelShape.GetWorldBoundary ( )

Gets current world boundaries

Returns
BoundingBoxD VRage.Game.ModAPI.IMyVoxelShape.PeekWorldBoundary ( ref Vector3D  targetPosition)

Peeks world boundaries at given position

Parameters
targetPosition
Returns

Property Documentation

MatrixD VRage.Game.ModAPI.IMyVoxelShape.Transform
getset

World matrix of voxel shape

Definition at line 11 of file IMyVoxelShape.cs.


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