Space Engineers
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Properties | Events | List of all members
Sandbox.Game.Entities.MyVoxelBase Class Referenceabstract
Inheritance diagram for Sandbox.Game.Entities.MyVoxelBase:
VRage.Game.Entity.MyEntity Sandbox.Engine.Voxels.IMyVoxelDrawable VRage.ModAPI.IMyVoxelBase VRage.Game.ModAPI.Interfaces.IMyDecalProxy VRage.Network.IMyEventProxy VRage.ModAPI.IMyEntity VRage.ModAPI.IMyEntity VRage.Game.ModAPI.Interfaces.IMyDecalProxy VRage.Network.IMyEventOwner VRage.Game.ModAPI.Ingame.IMyEntity VRage.Game.ModAPI.Ingame.IMyEntity Sandbox.Game.Entities.MyPlanet Sandbox.Game.Entities.MyVoxelMap

Public Member Functions

delegate void StorageChanged (MyVoxelBase storage, Vector3I minVoxelChanged, Vector3I maxVoxelChanged, MyStorageDataTypeFlags changedData)
 
bool IsBoxIntersectingBoundingBoxOfThisVoxelMap (ref BoundingBoxD boundingBox)
 
abstract void Init (MyObjectBuilder_EntityBase builder, Sandbox.Engine.Voxels.IMyStorage storage)
 
void Init (string storageName, Sandbox.Engine.Voxels.IMyStorage storage, Vector3D positionMinCorner)
 
virtual void Init (string storageName, Sandbox.Engine.Voxels.IMyStorage storage, MatrixD worldMatrix)
 
override MyObjectBuilder_EntityBase GetObjectBuilder (bool copy=false)
 Gets object builder from object. More...
 
float GetVoxelContentInBoundingBox_Obsolete (BoundingBoxD worldAabb, out float cellCount)
 
MyTuple< float, float > GetVoxelContentInBoundingBox_Fast (BoundingBoxD localAabb, MatrixD worldMatrix)
 Calculates amount of volume of a bounding box in voxels. More...
 
override bool GetIntersectionWithLine (ref LineD worldLine, out VRage.Game.Models.MyIntersectionResultLineTriangleEx?t, IntersectionFlags flags=IntersectionFlags.ALL_TRIANGLES)
 
override bool GetIntersectionWithLine (ref LineD worldLine, out Vector3D?v, bool useCollisionModel=true, IntersectionFlags flags=IntersectionFlags.ALL_TRIANGLES)
 
bool AreAllAabbCornersInside (ref MatrixD aabbWorldTransform, BoundingBoxD aabb)
 
bool IsAnyAabbCornerInside (ref MatrixD aabbWorldTransform, BoundingBoxD aabb)
 
unsafe int CountPointsInside (Vector3D *worldPoints, int pointCount)
 
virtual bool IsOverlapOverThreshold (BoundingBoxD worldAabb, float thresholdPercentage=0.9f)
 Returns true if the bounding box contains at least the specified amount (as a percent) of voxel material. More...
 
override bool DoOverlapSphereTest (float sphereRadius, Vector3D spherePos)
 
bool GetContainedVoxelCoords (ref BoundingBoxD worldAabb, out Vector3I min, out Vector3I max)
 
virtual int GetOrePriority ()
 
void RequestVoxelCutoutSphere (Vector3D center, float radius, bool createDebris, bool damage)
 
void RequestVoxelOperationCapsule (Vector3D A, Vector3D B, float radius, MatrixD Transformation, byte material, OperationType Type)
 
void RequestVoxelOperationSphere (Vector3D center, float radius, byte material, OperationType Type)
 
void RequestVoxelOperationBox (BoundingBoxD box, MatrixD Transformation, byte material, OperationType Type)
 
void RequestVoxelOperationRamp (BoundingBoxD box, Vector3D rampNormal, double rampNormalW, MatrixD Transformation, byte material, OperationType Type)
 
void RequestVoxelOperationElipsoid (Vector3 radius, MatrixD Transformation, byte material, OperationType Type)
 
void CreateVoxelMeteorCrater (Vector3D center, float radius, Vector3 normal, MyVoxelMaterialDefinition material)
 
void GetFilledStorageBounds (out Vector3I min, out Vector3I max)
 
MyVoxelRangeType GetVoxelRangeTypeInBoundingBox (BoundingBoxD worldAabb)
 
ContainmentType IntersectStorage (ref BoundingBox box, bool lazy=true)
 
void SendVoxelCloseRequest ()
 Use only for cut request More...
 
- Public Member Functions inherited from VRage.Game.Entity.MyEntity
void DebugDraw ()
 
void DebugDrawInvalidTriangles ()
 
void AddDebugRenderComponent (MyDebugRenderComponentBase render)
 
void ClearDebugRenderComponents ()
 
MyEntity GetTopMostParent (Type type=null)
 Return top most parent of this entity More...
 
virtual List< MyHudEntityParamsGetHudParams (bool allowBlink)
 
 MyEntity ()
 
 MyEntity (bool initComponents=true)
 Initializes a new instance of the MyEntity class. More...
 
void CreateSync ()
 
MyEntitySubpart GetSubpart (string name)
 
bool TryGetSubpart (string name, out MyEntitySubpart subpart)
 
virtual void UpdateOnceBeforeFrame ()
 
virtual void UpdateBeforeSimulation ()
 
virtual void UpdateAfterSimulation ()
 
virtual void UpdatingStopped ()
 
virtual void UpdateBeforeSimulation10 ()
 Called each 10th frame if registered for update10 More...
 
virtual void UpdateAfterSimulation10 ()
 
virtual void UpdateBeforeSimulation100 ()
 Called each 100th frame if registered for update100 More...
 
virtual void UpdateAfterSimulation100 ()
 
virtual string GetFriendlyName ()
 
virtual MatrixD GetViewMatrix ()
 
void SetSpeedsAccordingToServerValues ()
 
virtual void SetWorldMatrix (MatrixD worldMatrix, bool forceUpdate=false, bool updateChildren=true)
 
virtual void DebugDrawPhysics ()
 Draw physical representation of entity More...
 
virtual bool GetIntersectionWithLine (ref LineD line, out VRage.Game.Models.MyIntersectionResultLineTriangleEx?t, IntersectionFlags flags=IntersectionFlags.ALL_TRIANGLES)
 
virtual Vector3D GetIntersectionWithLineAndBoundingSphere (ref LineD line, float boundingSphereRadiusMultiplier)
 
virtual bool GetIntersectionWithSphere (ref BoundingSphereD sphere)
 
void GetTrianglesIntersectingSphere (ref BoundingSphereD sphere, Vector3?referenceNormalVector, float?maxAngle, List< MyTriangle_Vertex_Normals > retTriangles, int maxNeighbourTriangles)
 
double GetSmallestDistanceBetweenCameraAndBoundingSphere ()
 
double GetLargestDistanceBetweenCameraAndBoundingSphere ()
 
double GetDistanceBetweenCameraAndBoundingSphere ()
 
double GetDistanceBetweenPlayerPositionAndBoundingSphere ()
 
double GetDistanceBetweenCameraAndPosition ()
 
virtual MyEntity GetBaseEntity ()
 
virtual void OnAddedToScene (object source)
 Called when [activated] which for entity means that was added to scene. More...
 
virtual void OnRemovedFromScene (object source)
 
void AddToGamePruningStructure ()
 
void RemoveFromGamePruningStructure ()
 
void UpdateGamePruningStructure ()
 
void RaisePhysicsChanged ()
 
void HackyComponentInitByMiroPleaseDontUseEver (MyDefinitionId id)
 DONT USE THIS METHOD, EVER! More...
 
virtual void Init (MyObjectBuilder_EntityBase objectBuilder)
 
virtual void Init (StringBuilder displayName, string model, MyEntity parentObject, float?scale, string modelCollision=null)
 
virtual void RefreshModels (string model, string modelCollision)
 
void Delete ()
 Every object must have this method, but not every phys object must necessarily have something to cleanup More...
 
void Close ()
 This method marks this entity for close which means, that Close will be called after all entities are updated More...
 
virtual void BeforeSave ()
 Called before method GetObjectBuilder, when saving sector More...
 
virtual void PrepareForDraw ()
 Method is called defacto from Update, preparation fo Draw More...
 
virtual void BeforePaste ()
 
virtual void AfterPaste ()
 
void SetEmissiveParts (string emissiveName, Color emissivePartColor, float emissivity)
 Sets the emissive value of a specific emissive material on entity. More...
 
void SetEmissivePartsForSubparts (string emissiveName, Color emissivePartColor, float emissivity)
 Sets the emissive value of a specific emissive material on all entity subparts. More...
 
override string ToString ()
 
virtual MyInventoryBase GetInventoryBase (int index)
 Search for inventory component with maching index. More...
 
MyInventoryBase GetInventoryBase ()
 Simply get the MyInventoryBase component stored in this entity. More...
 
delegate MyObjectBuilder_EntityBase MyEntityFactoryCreateObjectBuilderDelegate (MyEntity entity)
 
delegate MySyncComponentBase CreateDefaultSyncEntityDelegate (MyEntity thisEntity)
 
delegate bool MyWeldingGroupsGroupExistsDelegate (MyEntity entity)
 
virtual void SerializeControls (BitStream stream)
 
virtual void DeserializeControls (BitStream stream, bool outOfOrder)
 
virtual void ApplyLastControls ()
 
- Public Member Functions inherited from VRage.ModAPI.IMyEntity
bool GetIntersectionWithLine (ref LineD line, out VRage.Game.Models.MyIntersectionResultLineTriangleEx?tri, IntersectionFlags flags)
 
void GetTrianglesIntersectingSphere (ref BoundingSphereD sphere, Vector3?referenceNormalVector, float?maxAngle, System.Collections.Generic.List< MyTriangle_Vertex_Normals > retTriangles, int maxNeighbourTriangles)
 

Static Public Member Functions

static bool IsForbiddenEntity (MyEntity entity)
 

Public Attributes

int VoxelMapPruningProxyId = MyVRageConstants.PRUNING_PROXY_ID_UNITIALIZED
 
bool CreateStorageCopyOnWrite = false
 
- Public Attributes inherited from VRage.Game.Entity.MyEntity
MyDefinitionId DefinitionId = null
 
string Name
 
bool DebugAsyncLoading
 
DebugCreatedBy DebugCreatedBy
 
float m_massChangeForCollisions = 1f
 
Vector3D m_serverPosition = new Vector3D()
 
Quaternion m_serverOrientation = new Quaternion()
 
MatrixD m_serverWorldMatrix = new MatrixD()
 
Vector3 m_serverLinearVelocity
 
Vector3 m_serverAngularVelocity
 
bool m_positionResetFromServer
 
bool SentFromServer
 
int GamePruningProxyId = MyVRageConstants.PRUNING_PROXY_ID_UNITIALIZED
 
int TopMostPruningProxyId = MyVRageConstants.PRUNING_PROXY_ID_UNITIALIZED
 
bool StaticForPruningStructure = false
 
int TargetPruningProxyId = MyVRageConstants.PRUNING_PROXY_ID_UNITIALIZED
 
Dictionary< IMyReplicable, Action > ReadyForReplicationAction = new Dictionary<IMyReplicable, Action>()
 

Protected Member Functions

virtual void InitVoxelMap (MatrixD worldMatrix, Vector3I size, bool useOffset=true)
 
override void BeforeDelete ()
 
void WorldPositionChanged (object source)
 
- Protected Member Functions inherited from VRage.Game.Entity.MyEntity
virtual bool CanBeAddedToRender ()
 
virtual MySyncComponentBase OnCreateSync ()
 
virtual void ClampToWorld ()
 
virtual void Closing ()
 
virtual void OnInventoryComponentAdded (MyInventoryBase inventory)
 
virtual void OnInventoryComponentRemoved (MyInventoryBase inventory)
 

Protected Attributes

Vector3I m_storageMin = new Vector3I(0, 0, 0)
 
Vector3I m_storageMax
 
Sandbox.Engine.Voxels.IMyStorage m_storage
 
- Protected Attributes inherited from VRage.Game.Entity.MyEntity
List< MyHudEntityParamsm_hudParams
 
MyModel m_modelCollision
 

Static Protected Attributes

static MyStorageData m_tempStorage = new MyStorageData()
 

Properties

Vector3I StorageMin [get]
 
Vector3I StorageMax [get]
 
string StorageName [get, protected set]
 
virtual Sandbox.Engine.Voxels.IMyStorage Storage [get, set]
 
bool DelayRigidBodyCreation [get, set]
 
Vector3I Size [get]
 Size of voxel map (in voxels) More...
 
Vector3I SizeMinusOne [get]
 
Vector3 SizeInMetres [get, protected set]
 Size of voxel map (in metres) More...
 
Vector3 SizeInMetresHalf [get, protected set]
 
virtual Vector3D PositionLeftBottomCorner [get, set]
 Position of left/bottom corner of this voxel map, in world space (not relative to sector) More...
 
Matrix Orientation [get]
 
bool ContentChanged [get, protected set]
 
abstract MyVoxelBase RootVoxel [get]
 Gets root voxel, for asteroids and planets itself. For MyVoxelPhysics, should return owning planet. More...
 
bool BeforeContentChanged [get, protected set]
 
bool CreatedByUser [get, set]
 
string AsteroidName [get, set]
 
virtual MyClipmapScaleEnum ScaleGroup [get]
 
- Properties inherited from VRage.Game.Entity.MyEntity
MyEntityComponentContainer Components [get]
 
MyPositionComponentBase PositionComp [get, set]
 
MyRenderComponentBase Render [get, set]
 
MyGameLogicComponent GameLogic [get, set]
 
long EntityId [get, set]
 Entity id, can be set by subclasses (for example when using pool...) More...
 
MySyncComponentBase SyncObject [get, protected set]
 
MyModStorageComponentBase Storage [get, set]
 
bool Closed [get, protected set]
 
bool MarkedForClose [get, protected set]
 
virtual float MaxGlassDistSq [get]
 
bool Save [get, set]
 
bool IsPreview [get, set]
 
bool IsReadyForReplication [get, set]
 
MyEntityUpdateEnum NeedsUpdate [get, set]
 
MatrixD WorldMatrix [get, set]
 
MyEntity Parent [get]
 Gets or sets the parent. More...
 
MyHierarchyComponent< MyEntityHierarchy [get, set]
 
MyPhysicsComponentBase Physics [get, set]
 Gets the physic component of the entity. More...
 
bool InvalidateOnMove [get, set]
 
bool SyncFlag [get, set]
 
bool InScene [get, set]
 
virtual bool IsVolumetric [get]
 
virtual Vector3D LocationForHudMarker [get]
 
MyModel Model [get]
 
MyModel ModelCollision [get]
 
string DisplayName [get, set]
 
string DebugName [get]
 
Dictionary< string, MyEntitySubpartSubparts [get]
 
virtual bool IsCCDForProjectiles [get]
 
int InventoryCount [get]
 Iterate through inventories and return their count. More...
 
bool HasInventory [get]
 Returns true if this entity has got at least one inventory. Note that one aggregate inventory can contain zero simple inventories => zero will be returned even if GetInventoryBase() != null. More...
 
virtual String DisplayNameText [get, set]
 Display Name for GUI etc. Override in descendant classes. Usually used to display in terminal or inventory controls. More...
 
EntityFlags Flags [get, set]
 
- Properties inherited from VRage.ModAPI.IMyEntity
MyEntityComponentContainer Components [get]
 
MyPhysicsComponentBase Physics [get, set]
 
MyPositionComponentBase PositionComp [get, set]
 
MyRenderComponentBase Render [get, set]
 
MyEntityComponentBase GameLogic [get, set]
 
MyHierarchyComponentBase Hierarchy [get, set]
 
MySyncComponentBase SyncObject [get]
 
MyModStorageComponentBase Storage [get, set]
 Custom storage for mods. Shared with all mods. More...
 
EntityFlags Flags [get, set]
 
long EntityId [get, set]
 
string Name [get, set]
 
bool MarkedForClose [get]
 
bool Closed [get]
 
bool DebugAsyncLoading [get]
 
bool Save [get, set]
 
MyPersistentEntityFlags2 PersistentFlags [get, set]
 
MyEntityUpdateEnum NeedsUpdate [get, set]
 
IMyEntity Parent [get]
 
Matrix LocalMatrix [get, set]
 
bool NearFlag [get, set]
 
bool CastShadows [get, set]
 
bool FastCastShadowResolve [get, set]
 
bool NeedsResolveCastShadow [get, set]
 
float MaxGlassDistSq [get]
 
bool NeedsDraw [get, set]
 
bool NeedsDrawFromParent [get, set]
 
bool Transparent [get, set]
 
bool ShadowBoxLod [get, set]
 
bool SkipIfTooSmall [get, set]
 
bool Visible [get, set]
 
bool InScene [get, set]
 
bool InvalidateOnMove [get]
 
new VRageMath.MatrixD WorldMatrix [get, set]
 
VRageMath.MatrixD WorldMatrixInvScaled [get]
 
VRageMath.MatrixD WorldMatrixNormalizedInv [get]
 
bool IsVolumetric [get]
 
BoundingBox LocalAABB [get, set]
 
BoundingBox LocalAABBHr [get]
 
BoundingSphere LocalVolume [get, set]
 
Vector3 LocalVolumeOffset [get, set]
 
Vector3 LocationForHudMarker [get]
 
bool IsCCDForProjectiles [get]
 
string DisplayName [get, set]
 
- Properties inherited from VRage.Game.ModAPI.Ingame.IMyEntity
MyEntityComponentContainer Components [get]
 
long EntityId [get]
 
VRageMath.BoundingBoxD WorldAABB [get]
 
VRageMath.BoundingBoxD WorldAABBHr [get]
 
VRageMath.MatrixD WorldMatrix [get]
 
VRageMath.BoundingSphereD WorldVolume [get]
 
VRageMath.BoundingSphereD WorldVolumeHr [get]
 
- Properties inherited from Sandbox.Engine.Voxels.IMyVoxelDrawable
IMyStorage Storage [get]
 
Vector3I Size [get]
 
Vector3D PositionLeftBottomCorner [get]
 
Matrix Orientation [get]
 
Vector3I StorageMin [get]
 
MyRenderComponentBase Render [get]
 
MyClipmapScaleEnum ScaleGroup [get]
 
- Properties inherited from VRage.ModAPI.IMyVoxelBase
IMyStorage Storage [get]
 
VRageMath.Vector3D PositionLeftBottomCorner [get]
 Position of left/bottom corner of this voxel map, in world space (not relative to sector) More...
 
IMyVoxelBase RootVoxel [get]
 Gets root voxel, for asteroids and planets itself. For MyVoxelPhysics, should return owning planet. More...
 
Matrix Orientation [get]
 
string StorageName [get]
 
Vector3I Size [get]
 Size of voxel map (in voxels) More...
 
Vector3 SizeInMetres [get]
 Size of voxel map (in metres) More...
 
Vector3I StorageMin [get]
 
Vector3I StorageMax [get]
 

Events

StorageChanged RangeChanged
 
- Events inherited from VRage.Game.Entity.MyEntity
Action< MyEntityOnMarkForClose
 This event may not be invoked at all, when calling MyEntities.CloseAll, marking is bypassed More...
 
Action< MyEntityOnClose
 
Action< MyEntityOnClosing
 
Action< MyEntityOnPhysicsChanged
 
- Events inherited from VRage.ModAPI.IMyEntity
Action< IMyEntityOnClose
 
Action< IMyEntityOnClosing
 
Action< IMyEntityOnMarkForClose
 
Action< IMyEntityOnPhysicsChanged
 

Additional Inherited Members

- Static Public Attributes inherited from VRage.Game.Entity.MyEntity
static Action< MyEntityAddToGamePruningStructureExtCallBack = null
 
static Action< MyEntityRemoveFromGamePruningStructureExtCallBack = null
 
static Action< MyEntityUpdateGamePruningStructureExtCallBack = null
 
static MyEntityFactoryCreateObjectBuilderDelegate MyEntityFactoryCreateObjectBuilderExtCallback = null
 
static CreateDefaultSyncEntityDelegate CreateDefaultSyncEntityExtCallback
 
static Action< MyEntityMyWeldingGroupsAddNodeExtCallback = null
 
static Action< MyEntityMyWeldingGroupsRemoveNodeExtCallback = null
 
static Action< MyEntity, List< MyEntity > > MyWeldingGroupsGetGroupNodesExtCallback = null
 
static MyWeldingGroupsGroupExistsDelegate MyWeldingGroupsGroupExistsExtCallback = null
 
static Action< MyEntityMyProceduralWorldGeneratorTrackEntityExtCallback = null
 
static Action< MyEntityCreateStandardRenderComponentsExtCallback = null
 
static Action< MyComponentContainer, MyObjectBuilderType, MyStringHash, MyObjectBuilder_ComponentContainerInitComponentsExtCallback = null
 
static Func< MyObjectBuilder_EntityBase, bool, MyEntityMyEntitiesCreateFromObjectBuilderExtCallback = null
 
- Static Protected Member Functions inherited from VRage.Game.Entity.MyEntity
static void UpdateNamedEmissiveParts (uint renderObjectId, string emissiveName, Color emissivePartColor, float emissivity)
 

Detailed Description

Definition at line 29 of file MyVoxelBase.cs.

Member Function Documentation

bool Sandbox.Game.Entities.MyVoxelBase.AreAllAabbCornersInside ( ref MatrixD  aabbWorldTransform,
BoundingBoxD  aabb 
)
inline

Definition at line 572 of file MyVoxelBase.cs.

override void Sandbox.Game.Entities.MyVoxelBase.BeforeDelete ( )
inlineprotectedvirtual

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 265 of file MyVoxelBase.cs.

unsafe int Sandbox.Game.Entities.MyVoxelBase.CountPointsInside ( Vector3D worldPoints,
int  pointCount 
)
inline

Definition at line 597 of file MyVoxelBase.cs.

void Sandbox.Game.Entities.MyVoxelBase.CreateVoxelMeteorCrater ( Vector3D  center,
float  radius,
Vector3  normal,
MyVoxelMaterialDefinition  material 
)
inline

Definition at line 1084 of file MyVoxelBase.cs.

override bool Sandbox.Game.Entities.MyVoxelBase.DoOverlapSphereTest ( float  sphereRadius,
Vector3D  spherePos 
)
inlinevirtual

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 674 of file MyVoxelBase.cs.

bool Sandbox.Game.Entities.MyVoxelBase.GetContainedVoxelCoords ( ref BoundingBoxD  worldAabb,
out Vector3I  min,
out Vector3I  max 
)
inline

Definition at line 733 of file MyVoxelBase.cs.

void Sandbox.Game.Entities.MyVoxelBase.GetFilledStorageBounds ( out Vector3I  min,
out Vector3I  max 
)
inline

Definition at line 1097 of file MyVoxelBase.cs.

override bool Sandbox.Game.Entities.MyVoxelBase.GetIntersectionWithLine ( ref LineD  worldLine,
out VRage.Game.Models.MyIntersectionResultLineTriangleEx t,
IntersectionFlags  flags = IntersectionFlags.ALL_TRIANGLES 
)
inline

Definition at line 525 of file MyVoxelBase.cs.

override bool Sandbox.Game.Entities.MyVoxelBase.GetIntersectionWithLine ( ref LineD  worldLine,
out Vector3D v,
bool  useCollisionModel = true,
IntersectionFlags  flags = IntersectionFlags.ALL_TRIANGLES 
)
inlinevirtual

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 559 of file MyVoxelBase.cs.

override MyObjectBuilder_EntityBase Sandbox.Game.Entities.MyVoxelBase.GetObjectBuilder ( bool  copy = false)
inlinevirtual

Gets object builder from object.

Returns

Reimplemented from VRage.Game.Entity.MyEntity.

Definition at line 351 of file MyVoxelBase.cs.

virtual int Sandbox.Game.Entities.MyVoxelBase.GetOrePriority ( )
inlinevirtual

We use this to ensure voxels overlapping planets will have priority when spawning debris/ores.

Reimplemented in Sandbox.Game.Entities.MyPlanet, and Sandbox.Game.Entities.MyVoxelMap.

Definition at line 758 of file MyVoxelBase.cs.

MyTuple<float,float> Sandbox.Game.Entities.MyVoxelBase.GetVoxelContentInBoundingBox_Fast ( BoundingBoxD  localAabb,
MatrixD  worldMatrix 
)
inline

Calculates amount of volume of a bounding box in voxels.

Parameters
localAabbLocal bounding box to query for.
worldMatrixWorld matrix of the bounding box.
Returns
Pair of floats where 1st value is Volume amount and 2nd value is ratio of Volume amount to Whole volume.

Definition at line 432 of file MyVoxelBase.cs.

float Sandbox.Game.Entities.MyVoxelBase.GetVoxelContentInBoundingBox_Obsolete ( BoundingBoxD  worldAabb,
out float  cellCount 
)
inline

Definition at line 384 of file MyVoxelBase.cs.

MyVoxelRangeType Sandbox.Game.Entities.MyVoxelBase.GetVoxelRangeTypeInBoundingBox ( BoundingBoxD  worldAabb)
inline

Definition at line 1126 of file MyVoxelBase.cs.

abstract void Sandbox.Game.Entities.MyVoxelBase.Init ( MyObjectBuilder_EntityBase  builder,
Sandbox.Engine.Voxels.IMyStorage  storage 
)
pure virtual
void Sandbox.Game.Entities.MyVoxelBase.Init ( string  storageName,
Sandbox.Engine.Voxels.IMyStorage  storage,
Vector3D  positionMinCorner 
)
inline

Definition at line 214 of file MyVoxelBase.cs.

virtual void Sandbox.Game.Entities.MyVoxelBase.Init ( string  storageName,
Sandbox.Engine.Voxels.IMyStorage  storage,
MatrixD  worldMatrix 
)
inlinevirtual

Definition at line 220 of file MyVoxelBase.cs.

virtual void Sandbox.Game.Entities.MyVoxelBase.InitVoxelMap ( MatrixD  worldMatrix,
Vector3I  size,
bool  useOffset = true 
)
inlineprotectedvirtual

Reimplemented in Sandbox.Game.Entities.MyVoxelMap.

Definition at line 241 of file MyVoxelBase.cs.

ContainmentType Sandbox.Game.Entities.MyVoxelBase.IntersectStorage ( ref BoundingBox  box,
bool  lazy = true 
)
inline

Intersect the storage

Parameters
boxWorldSpace bounding box to intersect with the storage.

Definition at line 1147 of file MyVoxelBase.cs.

bool Sandbox.Game.Entities.MyVoxelBase.IsAnyAabbCornerInside ( ref MatrixD  aabbWorldTransform,
BoundingBoxD  aabb 
)
inline

Definition at line 577 of file MyVoxelBase.cs.

bool Sandbox.Game.Entities.MyVoxelBase.IsBoxIntersectingBoundingBoxOfThisVoxelMap ( ref BoundingBoxD  boundingBox)
inline

Implements VRage.ModAPI.IMyVoxelBase.

Definition at line 205 of file MyVoxelBase.cs.

static bool Sandbox.Game.Entities.MyVoxelBase.IsForbiddenEntity ( MyEntity  entity)
inlinestatic

Definition at line 1056 of file MyVoxelBase.cs.

virtual bool Sandbox.Game.Entities.MyVoxelBase.IsOverlapOverThreshold ( BoundingBoxD  worldAabb,
float  thresholdPercentage = 0.9f 
)
inlinevirtual

Returns true if the bounding box contains at least the specified amount (as a percent) of voxel material.

Parameters
worldAabb
thresholdPercentage
Returns

Implements VRage.ModAPI.IMyVoxelBase.

Reimplemented in Sandbox.Game.Entities.MyVoxelMap.

Definition at line 658 of file MyVoxelBase.cs.

void Sandbox.Game.Entities.MyVoxelBase.RequestVoxelCutoutSphere ( Vector3D  center,
float  radius,
bool  createDebris,
bool  damage 
)
inline

Definition at line 780 of file MyVoxelBase.cs.

void Sandbox.Game.Entities.MyVoxelBase.RequestVoxelOperationBox ( BoundingBoxD  box,
MatrixD  Transformation,
byte  material,
OperationType  Type 
)
inline

Definition at line 890 of file MyVoxelBase.cs.

void Sandbox.Game.Entities.MyVoxelBase.RequestVoxelOperationCapsule ( Vector3D  A,
Vector3D  B,
float  radius,
MatrixD  Transformation,
byte  material,
OperationType  Type 
)
inline

Definition at line 792 of file MyVoxelBase.cs.

void Sandbox.Game.Entities.MyVoxelBase.RequestVoxelOperationElipsoid ( Vector3  radius,
MatrixD  Transformation,
byte  material,
OperationType  Type 
)
inline

Definition at line 992 of file MyVoxelBase.cs.

void Sandbox.Game.Entities.MyVoxelBase.RequestVoxelOperationRamp ( BoundingBoxD  box,
Vector3D  rampNormal,
double  rampNormalW,
MatrixD  Transformation,
byte  material,
OperationType  Type 
)
inline

Definition at line 936 of file MyVoxelBase.cs.

void Sandbox.Game.Entities.MyVoxelBase.RequestVoxelOperationSphere ( Vector3D  center,
float  radius,
byte  material,
OperationType  Type 
)
inline

Definition at line 846 of file MyVoxelBase.cs.

void Sandbox.Game.Entities.MyVoxelBase.SendVoxelCloseRequest ( )
inline

Use only for cut request

Definition at line 1159 of file MyVoxelBase.cs.

delegate void Sandbox.Game.Entities.MyVoxelBase.StorageChanged ( MyVoxelBase  storage,
Vector3I  minVoxelChanged,
Vector3I  maxVoxelChanged,
MyStorageDataTypeFlags  changedData 
)
void Sandbox.Game.Entities.MyVoxelBase.WorldPositionChanged ( object  source)
inlineprotected

Definition at line 370 of file MyVoxelBase.cs.

Member Data Documentation

bool Sandbox.Game.Entities.MyVoxelBase.CreateStorageCopyOnWrite = false

Definition at line 82 of file MyVoxelBase.cs.

Sandbox.Engine.Voxels.IMyStorage Sandbox.Game.Entities.MyVoxelBase.m_storage
protected

Definition at line 75 of file MyVoxelBase.cs.

Vector3I Sandbox.Game.Entities.MyVoxelBase.m_storageMax
protected

Definition at line 60 of file MyVoxelBase.cs.

Vector3I Sandbox.Game.Entities.MyVoxelBase.m_storageMin = new Vector3I(0, 0, 0)
protected

Definition at line 51 of file MyVoxelBase.cs.

MyStorageData Sandbox.Game.Entities.MyVoxelBase.m_tempStorage = new MyStorageData()
staticprotected

Definition at line 170 of file MyVoxelBase.cs.

int Sandbox.Game.Entities.MyVoxelBase.VoxelMapPruningProxyId = MyVRageConstants.PRUNING_PROXY_ID_UNITIALIZED

Definition at line 49 of file MyVoxelBase.cs.

Property Documentation

string Sandbox.Game.Entities.MyVoxelBase.AsteroidName
getset

Definition at line 191 of file MyVoxelBase.cs.

bool Sandbox.Game.Entities.MyVoxelBase.BeforeContentChanged
getprotected set

Definition at line 151 of file MyVoxelBase.cs.

bool Sandbox.Game.Entities.MyVoxelBase.ContentChanged
getprotected set

Definition at line 128 of file MyVoxelBase.cs.

bool Sandbox.Game.Entities.MyVoxelBase.CreatedByUser
getset

Definition at line 185 of file MyVoxelBase.cs.

bool Sandbox.Game.Entities.MyVoxelBase.DelayRigidBodyCreation
getset

Definition at line 84 of file MyVoxelBase.cs.

Matrix Sandbox.Game.Entities.MyVoxelBase.Orientation
get

Definition at line 122 of file MyVoxelBase.cs.

virtual Vector3D Sandbox.Game.Entities.MyVoxelBase.PositionLeftBottomCorner
getset

Position of left/bottom corner of this voxel map, in world space (not relative to sector)

Definition at line 116 of file MyVoxelBase.cs.

abstract MyVoxelBase Sandbox.Game.Entities.MyVoxelBase.RootVoxel
get

Gets root voxel, for asteroids and planets itself. For MyVoxelPhysics, should return owning planet.

Definition at line 147 of file MyVoxelBase.cs.

virtual MyClipmapScaleEnum Sandbox.Game.Entities.MyVoxelBase.ScaleGroup
get

Definition at line 664 of file MyVoxelBase.cs.

Vector3I Sandbox.Game.Entities.MyVoxelBase.Size
get

Size of voxel map (in voxels)

Definition at line 90 of file MyVoxelBase.cs.

Vector3 Sandbox.Game.Entities.MyVoxelBase.SizeInMetres
getprotected set

Size of voxel map (in metres)

Definition at line 102 of file MyVoxelBase.cs.

Vector3 Sandbox.Game.Entities.MyVoxelBase.SizeInMetresHalf
getprotected set

Definition at line 107 of file MyVoxelBase.cs.

Vector3I Sandbox.Game.Entities.MyVoxelBase.SizeMinusOne
get

Definition at line 94 of file MyVoxelBase.cs.

virtual Sandbox.Engine.Voxels.IMyStorage Sandbox.Game.Entities.MyVoxelBase.Storage
getset

Definition at line 77 of file MyVoxelBase.cs.

Vector3I Sandbox.Game.Entities.MyVoxelBase.StorageMax
get

Definition at line 62 of file MyVoxelBase.cs.

Vector3I Sandbox.Game.Entities.MyVoxelBase.StorageMin
get

Definition at line 53 of file MyVoxelBase.cs.

string Sandbox.Game.Entities.MyVoxelBase.StorageName
getprotected set

Definition at line 70 of file MyVoxelBase.cs.

Event Documentation

StorageChanged Sandbox.Game.Entities.MyVoxelBase.RangeChanged

Definition at line 182 of file MyVoxelBase.cs.


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