• Articles
  • Api Documentation
  • Api Documentation
Show / Hide Table of Contents

Class MyPlanet

Inheritance
System.Object
MyEntity
MyVoxelBase
MyPlanet
Implements
IMyVoxelBase
IMyEntity
IMyEntity
IMyDecalProxy
IMyOxygenProvider
Inherited Members
MyVoxelBase.VoxelMapPruningProxyId
MyVoxelBase.m_storageMin
MyVoxelBase.m_storageMax
MyVoxelBase.IsSeedOpen
MyVoxelBase.CreateStorageCopyOnWrite
MyVoxelBase.m_tempStorage
MyVoxelBase.BoulderInfo
MyVoxelBase.add_RangeChanged(MyVoxelBase.StorageChanged)
MyVoxelBase.remove_RangeChanged(MyVoxelBase.StorageChanged)
MyVoxelBase.OnRangeChanged(Vector3I, Vector3I, MyStorageDataTypeFlags)
MyVoxelBase.IsBoxIntersectingBoundingBoxOfThisVoxelMap(BoundingBoxD)
MyVoxelBase.Init(String, IMyStorage, Vector3D)
MyVoxelBase.Init(String, IMyStorage, MatrixD, Boolean)
MyVoxelBase.InitVoxelMap(MatrixD, Vector3I, Boolean)
MyVoxelBase.WorldPositionChanged(Object)
MyVoxelBase.GetVoxelContentInBoundingBox_Fast(BoundingBoxD, MatrixD, Boolean, Single)
MyVoxelBase.GetIntersectionWithLine(LineD, Nullable<MyIntersectionResultLineTriangleEx>, IntersectionFlags)
MyVoxelBase.GetIntersectionWithLine(LineD, Nullable<Vector3D>, Boolean, IntersectionFlags)
MyVoxelBase.AreAllAabbCornersInside(MatrixD, BoundingBoxD)
MyVoxelBase.IsAnyAabbCornerInside(MatrixD, BoundingBoxD)
MyVoxelBase.IsAnyOfPointInside(Vector3D[])
MyVoxelBase.CountPointsInside(Vector3D*, Int32, Boolean)
MyVoxelBase.IsOverlapOverThreshold(BoundingBoxD, Single)
MyVoxelBase.DoOverlapSphereTest(Single, Vector3D)
MyVoxelBase.OverlapsSphereLocal(Single, Vector3D)
MyVoxelBase.GetContainedVoxelCoords(BoundingBoxD, Vector3I, Vector3I)
MyVoxelBase.IMyDecalProxy.AddDecals(MyHitInfo, MyStringHash, Vector3, Object, IMyDecalHandler, MyStringHash, MyStringHash, Boolean, MyDecalFlags, Int32, List<UInt32>)
MyVoxelBase.RequestVoxelCutoutSphere(Vector3D, Single, Boolean, Boolean)
MyVoxelBase.RequestVoxelOperationCapsule(Vector3D, Vector3D, Single, MatrixD, Byte, MyVoxelBase.OperationType)
MyVoxelBase.RequestVoxelOperationSphere(Vector3D, Single, Byte, MyVoxelBase.OperationType)
MyVoxelBase.RequestVoxelOperationBox(BoundingBoxD, MatrixD, Byte, MyVoxelBase.OperationType)
MyVoxelBase.RequestVoxelOperationRamp(BoundingBoxD, Vector3D, Double, MatrixD, Byte, MyVoxelBase.OperationType)
MyVoxelBase.RequestVoxelOperationElipsoid(Vector3, MatrixD, Byte, MyVoxelBase.OperationType)
MyVoxelBase.RevertVoxelAccess(Vector3I, MyStorageDataTypeFlags)
MyVoxelBase.PerformCutOutSphereFast(Vector3D, Single, Boolean)
MyVoxelBase.BroadcastShipCutout(MyShipMiningSystem.NetworkCutoutData)
MyVoxelBase.CutOutShapeWithProperties(MyShape, Single, MyVoxelMaterialDefinition, Dictionary<MyVoxelMaterialDefinition, Int32>, Boolean, Boolean, Boolean, Boolean)
MyVoxelBase.CutOutShapeWithPropertiesAsync(MyVoxelBase.OnCutOutResults, MyShape, Boolean, Boolean, Boolean, Boolean, Boolean)
MyVoxelBase.IsForbiddenEntity(MyEntity)
MyVoxelBase.CreateVoxelMeteorCrater(Vector3D, Single, Vector3, MyVoxelMaterialDefinition)
MyVoxelBase.GetFilledStorageBounds(Vector3I, Vector3I)
MyVoxelBase.GetVoxelRangeTypeInBoundingBox(BoundingBoxD)
MyVoxelBase.GetMaterialsInShape(MyShape, Int32)
MyVoxelBase.IntersectStorage(BoundingBox, Boolean)
MyVoxelBase.FindOutsidePosition(Vector3D, Single)
MyVoxelBase.OnReplicationStarted()
MyVoxelBase.OnReplicationEnded()
MyVoxelBase.GetMaterialAt(Vector3D)
MyVoxelBase.StorageMin
MyVoxelBase.StorageMax
MyVoxelBase.StorageName
MyVoxelBase.VoxelSize
MyVoxelBase.m_storage
MyVoxelBase.DelayRigidBodyCreation
MyVoxelBase.Size
MyVoxelBase.SizeMinusOne
MyVoxelBase.SizeInMetres
MyVoxelBase.SizeInMetresHalf
MyVoxelBase.Orientation
MyVoxelBase.ContentChanged
MyVoxelBase.BeforeContentChanged
MyVoxelBase.CreatedByUser
MyVoxelBase.AsteroidName
MyVoxelBase.IsGlobalEncounterAsteroid
MyVoxelBase.IMyVoxelBase.Storage
MyVoxelBase.IMyVoxelBase.StorageName
MyVoxelBase.RangeChanged
MyEntity.m_contactPoint
MyEntity.DefinitionId
MyEntity.DebugAsyncLoading
MyEntity.m_hudParams
MyEntity.m_positionResetFromServer
MyEntity.m_modelCollision
MyEntity.GamePruningProxyId
MyEntity.TopMostPruningProxyId
MyEntity.StaticForPruningStructure
MyEntity.TargetPruningProxyId
MyEntity.IsPreviewChanged
MyEntity.ReadyForReplicationAction
MyEntity.PropagateSubpartRotationThroughHieerarchy
MyEntity.ReplicationStarted
MyEntity.ReplicationEnded
MyEntity.OnEntityCloseRequest
MyEntity.InstantiateSubpartOverrideFunc
MyEntity.AddToGamePruningStructureExtCallBack
MyEntity.RemoveFromGamePruningStructureExtCallBack
MyEntity.UpdateGamePruningStructureExtCallBack
MyEntity.MyEntityFactoryCreateObjectBuilderExtCallback
MyEntity.CreateDefaultSyncEntityExtCallback
MyEntity.MyWeldingGroupsAddNodeExtCallback
MyEntity.MyWeldingGroupsRemoveNodeExtCallback
MyEntity.MyWeldingGroupsGetGroupNodesExtCallback
MyEntity.MyWeldingGroupsGroupExistsExtCallback
MyEntity.MyProceduralWorldGeneratorTrackEntityExtCallback
MyEntity.CreateStandardRenderComponentsExtCallback
MyEntity.InitComponentsExtCallback
MyEntity.MyEntitiesCreateFromObjectBuilderExtCallback
MyEntity.DebugDraw()
MyEntity.DebugDrawInvalidTriangles()
MyEntity.AddDebugRenderComponent(MyDebugRenderComponentBase)
MyEntity.ContainsDebugRenderComponent(Type)
MyEntity.TryGetDebugRenderComponent<T>(T)
MyEntity.RemoveDebugRenderComponent(Type)
MyEntity.RemoveDebugRenderComponent(MyDebugRenderComponentBase)
MyEntity.ClearDebugRenderComponents()
MyEntity.GetTopMostParent(Type)
MyEntity.GetHudParams(Boolean)
MyEntity.CanBeAddedToRender()
MyEntity.InitComponents()
MyEntity.InitComponentsForTesting()
MyEntity.Components_ComponentAdded(Type, IMyEntityComponentBase)
MyEntity.Components_ComponentRemoved(Type, IMyEntityComponentBase)
MyEntity.OnCreateSync()
MyEntity.CreateSync()
MyEntity.GetSubpart(String)
MyEntity.TryGetSubpart(String, MyEntitySubpart)
MyEntity.UpdateBeforeSimulation()
MyEntity.Simulate()
MyEntity.UpdateAfterSimulation()
MyEntity.UpdatingStopped()
MyEntity.UpdateBeforeSimulation10()
MyEntity.UpdateBeforeSimulation100()
MyEntity.GetFriendlyName()
MyEntity.GetViewMatrix()
MyEntity.Teleport(MatrixD, Object, Boolean)
MyEntity.GetIntersectionWithLineAndBoundingSphere(LineD, Single)
MyEntity.GetIntersectionWithSphere(BoundingSphereD)
MyEntity.GetIntersectionWithAABB(BoundingBoxD)
MyEntity.GetTrianglesIntersectingSphere(BoundingSphere, Nullable<Vector3>, Nullable<Single>, List<MyTriangle_Vertex_Normals>, Int32)
MyEntity.GetSmallestDistanceBetweenCameraAndBoundingSphere()
MyEntity.GetLargestDistanceBetweenCameraAndBoundingSphere()
MyEntity.GetDistanceBetweenCameraAndBoundingSphere()
MyEntity.GetDistanceBetweenPlayerPositionAndBoundingSphere()
MyEntity.GetDistanceBetweenCameraAndPosition()
MyEntity.GetBaseEntity()
MyEntity.SetFadeOut(Boolean)
MyEntity.AddToGamePruningStructure()
MyEntity.RemoveFromGamePruningStructure()
MyEntity.UpdateGamePruningStructure()
MyEntity.RaisePhysicsChanged()
MyEntity.BeforeGameLogicInit()
MyEntity.ClampToWorld()
MyEntity.Init(StringBuilder, String, MyEntity, Nullable<Single>, String)
MyEntity.RefreshModels(String, String)
MyEntity.Delete()
MyEntity.Close()
MyEntity.BeforeSave()
MyEntity.PrepareForDraw()
MyEntity.SetEmissiveParts(String, Color, Single)
MyEntity.SetEmissivePartsForSubparts(String, Color, Single)
MyEntity.UpdateNamedEmissiveParts(UInt32, String, Color, Single)
MyEntity.InstantiateSubpart(MyModelDummy, MyEntitySubpart.Data)
MyEntity.GetCubeBlockParent(MyEntity)
MyEntity.ToString()
MyEntity.GetInventoryBase(Int32)
MyEntity.GetInventoryBase()
MyEntity.OnInventoryComponentAdded(MyInventoryBase)
MyEntity.OnInventoryComponentRemoved(MyInventoryBase)
MyEntity.SerializeControls(BitStream)
MyEntity.DeserializeControls(BitStream, Boolean)
MyEntity.ApplyLastControls()
MyEntity.ResetControls()
MyEntity.Pin()
MyEntity.Unpin()
MyEntity.UpdateSoundContactPoint(Int64, Vector3, Vector3, Vector3, Single)
MyEntity.IMyEntity.GetTopMostParent(Type)
MyEntity.IMyEntity.GetChildren(List<IMyEntity>, Func<IMyEntity, Boolean>)
MyEntity.IMyEntity.GetFriendlyName()
MyEntity.IMyEntity.Close()
MyEntity.IMyEntity.Delete()
MyEntity.IMyEntity.GetDiffuseColor()
MyEntity.IMyEntity.GetDistanceBetweenCameraAndBoundingSphere()
MyEntity.IMyEntity.GetDistanceBetweenCameraAndPosition()
MyEntity.IMyEntity.GetLargestDistanceBetweenCameraAndBoundingSphere()
MyEntity.IMyEntity.GetSmallestDistanceBetweenCameraAndBoundingSphere()
MyEntity.IMyEntity.GetIntersectionWithLineAndBoundingSphere(LineD, Single)
MyEntity.IMyEntity.GetIntersectionWithSphere(BoundingSphereD)
MyEntity.IMyEntity.GetInventory()
MyEntity.IMyEntity.GetInventory(Int32)
MyEntity.IMyEntity.GetTrianglesIntersectingSphere(BoundingSphere, Nullable<Vector3>, Nullable<Single>, List<MyTriangle_Vertex_Normals>, Int32)
MyEntity.IMyEntity.DoOverlapSphereTest(Single, Vector3D)
MyEntity.IMyEntity.GetObjectBuilder(Boolean)
MyEntity.IMyEntity.IsVisible()
MyEntity.IMyEntity.GetViewMatrix()
MyEntity.IMyEntity.GetWorldMatrixNormalizedInv()
MyEntity.IMyEntity.SetLocalMatrix(Matrix, Object)
MyEntity.IMyEntity.SetWorldMatrix(MatrixD, Object)
MyEntity.IMyEntity.SetPosition(Vector3D)
MyEntity.IMyEntity.EnableColorMaskForSubparts(Boolean)
MyEntity.IMyEntity.SetColorMaskForSubparts(Vector3)
MyEntity.IMyEntity.SetTextureChangesForSubparts(Dictionary<String, MyTextureChange>)
MyEntity.IMyEntity.SetTextureChangesForSubparts(Dictionary<MyStringId, MyTextureChange>)
MyEntity.IMyEntity.SetEmissiveParts(String, Color, Single)
MyEntity.IMyEntity.SetEmissivePartsForSubparts(String, Color, Single)
MyEntity.IMyEntity.GetInventory()
MyEntity.IMyEntity.GetInventory(Int32)
MyEntity.IMyEntity.GetPosition()
MyEntity.Components
MyEntity.Name
MyEntity.PositionComp
MyEntity.Render
MyEntity.GameLogic
MyEntity.EntityId
MyEntity.SyncObject
MyEntity.EntityStorage
MyEntity.Closed
MyEntity.MarkedForClose
MyEntity.MaxGlassDistSq
MyEntity.Save
MyEntity.IsPreview
MyEntity.IsReadyForReplication
MyEntity.NeedsUpdate
MyEntity.WorldMatrix
MyEntity.Parent
MyEntity.Hierarchy
MyEntity.IMyEntity.Hierarchy
MyEntity.IMyEntity.Physics
MyEntity.Physics
MyEntity.InvalidateOnMove
MyEntity.SyncFlag
MyEntity.NeedsWorldMatrix
MyEntity.InScene
MyEntity.IsVolumetric
MyEntity.LocationForHudMarker
MyEntity.Model
MyEntity.ModelCollision
MyEntity.DisplayName
MyEntity.DebugName
MyEntity.Subparts
MyEntity.IsCCDForProjectiles
MyEntity.Pinned
MyEntity.UpdateDuration
MyEntity.IsReplicated
MyEntity.InventoryCount
MyEntity.HasInventory
MyEntity.DisplayNameText
MyEntity.LastSnapshotFlags
MyEntity.Flags
MyEntity.IMyEntity.Parent
MyEntity.IMyEntity.Name
MyEntity.IMyEntity.DebugAsyncLoading
MyEntity.IMyEntity.DisplayName
MyEntity.IMyEntity.MarkedForClose
MyEntity.IMyEntity.Closed
MyEntity.IMyEntity.Model
MyEntity.IMyEntity.GameLogic
MyEntity.IMyEntity.NeedsUpdate
MyEntity.IMyEntity.NearFlag
MyEntity.IMyEntity.CastShadows
MyEntity.IMyEntity.FastCastShadowResolve
MyEntity.IMyEntity.NeedsResolveCastShadow
MyEntity.IMyEntity.MaxGlassDistSq
MyEntity.IMyEntity.NeedsDraw
MyEntity.IMyEntity.NeedsDrawFromParent
MyEntity.IMyEntity.Transparent
MyEntity.IMyEntity.ShadowBoxLod
MyEntity.IMyEntity.SkipIfTooSmall
MyEntity.IMyEntity.Storage
MyEntity.IMyEntity.Visible
MyEntity.IMyEntity.Save
MyEntity.IMyEntity.PersistentFlags
MyEntity.IMyEntity.InScene
MyEntity.IMyEntity.InvalidateOnMove
MyEntity.IMyEntity.IsCCDForProjectiles
MyEntity.IMyEntity.IsVolumetric
MyEntity.IMyEntity.LocalAABB
MyEntity.IMyEntity.LocalAABBHr
MyEntity.IMyEntity.LocalMatrix
MyEntity.IMyEntity.LocalVolume
MyEntity.IMyEntity.LocalVolumeOffset
MyEntity.IMyEntity.LocationForHudMarker
MyEntity.IMyEntity.Synchronized
MyEntity.IMyEntity.WorldMatrix
MyEntity.IMyEntity.WorldMatrixInvScaled
MyEntity.IMyEntity.WorldMatrixNormalizedInv
MyEntity.IMyEntity.ModelCollision
MyEntity.IMyEntity.HasInventory
MyEntity.IMyEntity.InventoryCount
MyEntity.IMyEntity.DisplayName
MyEntity.IMyEntity.Name
MyEntity.IMyEntity.WorldAABB
MyEntity.IMyEntity.WorldAABBHr
MyEntity.IMyEntity.WorldMatrix
MyEntity.IMyEntity.WorldVolume
MyEntity.IMyEntity.WorldVolumeHr
MyEntity.StopPhysicsActivation
MyEntity.OnMarkForClose
MyEntity.OnClose
MyEntity.OnClosing
MyEntity.OnModelRefresh
MyEntity.OnUpdateOnceBeforeNextFrame
MyEntity.OnDebugDraw
MyEntity.OnPhysicsChanged
MyEntity.OnPhysicsComponentChanged
MyEntity.AddedToScene
MyEntity.RemovedFromScene
MyEntity.OnTeleported
MyEntity.IMyEntity.OnClose
MyEntity.IMyEntity.OnClosing
MyEntity.IMyEntity.OnMarkForClose
MyEntity.IMyEntity.OnPhysicsChanged
Namespace: Sandbox.Game.Entities
Assembly: Sandbox.Game.dll
Syntax
[MyEntityType]
public class MyPlanet : MyVoxelBase, IMyVoxelDrawable, IMyVoxelBase, IMyEntity, IMyEntity, IMyDecalProxy, IMyEventProxy, IMyEventOwner, IMyOxygenProvider

Constructors

MyPlanet()

Declaration
public MyPlanet()

Fields

MemoryTracker

Declaration
public static MyMemorySystem MemoryTracker
Field Value
Type Description
VRage.Library.Memory.MyMemorySystem

PHYSICS_SECTOR_SIZE_METERS

Declaration
public const int PHYSICS_SECTOR_SIZE_METERS = 1024
Field Value
Type Description
System.Int32

RUN_SECTORS

Declaration
public static bool RUN_SECTORS
Field Value
Type Description
System.Boolean

Properties

AtmosphereAltitude

Declaration
public float AtmosphereAltitude { get; }
Property Value
Type Description
System.Single

AtmosphereRadius

Declaration
public float AtmosphereRadius { get; }
Property Value
Type Description
System.Single

AtmosphereSettings

Declaration
public MyAtmosphereSettings AtmosphereSettings { get; set; }
Property Value
Type Description
VRageRender.Messages.MyAtmosphereSettings

AtmosphereWavelengths

Declaration
public Vector3 AtmosphereWavelengths { get; }
Property Value
Type Description
Vector3

AverageRadius

Declaration
public float AverageRadius { get; }
Property Value
Type Description
System.Single

Generator

Declaration
public MyPlanetGeneratorDefinition Generator { get; }
Property Value
Type Description
MyPlanetGeneratorDefinition

GetInitArguments

Declaration
public MyPlanetInitArguments GetInitArguments { get; }
Property Value
Type Description
MyPlanetInitArguments

HasAtmosphere

Declaration
public bool HasAtmosphere { get; }
Property Value
Type Description
System.Boolean

MaximumRadius

Declaration
public float MaximumRadius { get; }
Property Value
Type Description
System.Single

MinimumRadius

Declaration
public float MinimumRadius { get; }
Property Value
Type Description
System.Single

PositionLeftBottomCorner

Declaration
public override Vector3D PositionLeftBottomCorner { get; set; }
Property Value
Type Description
Vector3D
Overrides
MyVoxelBase.PositionLeftBottomCorner

Provider

Declaration
public MyPlanetStorageProvider Provider { get; }
Property Value
Type Description
Sandbox.Engine.Voxels.Planet.MyPlanetStorageProvider

RootVoxel

Declaration
public override MyVoxelBase RootVoxel { get; }
Property Value
Type Description
MyVoxelBase
Overrides
MyVoxelBase.RootVoxel

ScaleGroup

Declaration
public override MyClipmapScaleEnum ScaleGroup { get; }
Property Value
Type Description
MyClipmapScaleEnum
Overrides
MyVoxelBase.ScaleGroup

SpherizeWithDistance

Declaration
public bool SpherizeWithDistance { get; }
Property Value
Type Description
System.Boolean

Storage

Declaration
public IMyStorage Storage { get; set; }
Property Value
Type Description
VRage.Game.Voxels.IMyStorage

Methods

AddChildEntity(MyEntity)

Declaration
public void AddChildEntity(MyEntity child)
Parameters
Type Name Description
MyEntity child

AddToStationOreBlockTree(ref MyDynamicAABBTree, Vector3D, Single)

Declaration
public void AddToStationOreBlockTree(ref MyDynamicAABBTree stationOreBlockTree, Vector3D position, float radius)
Parameters
Type Name Description
MyDynamicAABBTree stationOreBlockTree
Vector3D position
System.Single radius

AfterPaste()

Declaration
public override void AfterPaste()
Overrides
MyEntity.AfterPaste()

BeforeDelete()

Declaration
protected override void BeforeDelete()
Overrides
MyVoxelBase.BeforeDelete()

BeforePaste()

Declaration
public override void BeforePaste()
Overrides
MyEntity.BeforePaste()

Closing()

Declaration
protected override void Closing()
Overrides
MyEntity.Closing()

CorrectSpawnLocation(ref Vector3D, Double)

Declaration
public void CorrectSpawnLocation(ref Vector3D position, double radius)
Parameters
Type Name Description
Vector3D position
System.Double radius

CorrectSpawnLocation2(ref Vector3D, Double, Boolean)

Declaration
public bool CorrectSpawnLocation2(ref Vector3D position, double radius, bool resumeSearch = false)
Parameters
Type Name Description
Vector3D position
System.Double radius
System.Boolean resumeSearch

Don't modify initial search position

Returns
Type Description
System.Boolean

True if it a safe position is found

DebugDrawPhysics()

Declaration
public override void DebugDrawPhysics()
Overrides
MyEntity.DebugDrawPhysics()

GetAirDensity(Vector3D)

Declaration
public float GetAirDensity(Vector3D worldPosition)
Parameters
Type Name Description
Vector3D worldPosition
Returns
Type Description
System.Single

GetClosestSurfacePointGlobal(Vector3D)

Declaration
public Vector3D GetClosestSurfacePointGlobal(Vector3D globalPos)
Parameters
Type Name Description
Vector3D globalPos
Returns
Type Description
Vector3D

GetClosestSurfacePointGlobal(ref Vector3D)

Declaration
public Vector3D GetClosestSurfacePointGlobal(ref Vector3D globalPos)
Parameters
Type Name Description
Vector3D globalPos
Returns
Type Description
Vector3D

GetClosestSurfacePointLocal(ref Vector3)

Declaration
public Vector3D GetClosestSurfacePointLocal(ref Vector3 localPos)
Parameters
Type Name Description
Vector3 localPos
Returns
Type Description
Vector3D

GetHeightFromSurface(Vector3D)

Declaration
public double GetHeightFromSurface(Vector3D position)
Parameters
Type Name Description
Vector3D position
Returns
Type Description
System.Double

GetInstanceHash()

Declaration
public int GetInstanceHash()
Returns
Type Description
System.Int32

GetObjectBuilder(Boolean)

Declaration
public override MyObjectBuilder_EntityBase GetObjectBuilder(bool copy = false)
Parameters
Type Name Description
System.Boolean copy
Returns
Type Description
MyObjectBuilder_EntityBase
Overrides
MyVoxelBase.GetObjectBuilder(Boolean)

GetOrePriority()

Declaration
public override int GetOrePriority()
Returns
Type Description
System.Int32
Overrides
MyVoxelBase.GetOrePriority()

GetOxygenForPosition(Vector3D)

Declaration
public float GetOxygenForPosition(Vector3D worldPoint)
Parameters
Type Name Description
Vector3D worldPoint
Returns
Type Description
System.Single

GetWindSpeed(Vector3D)

Declaration
public float GetWindSpeed(Vector3D worldPosition)
Parameters
Type Name Description
Vector3D worldPosition
Returns
Type Description
System.Single

Init(MyPlanetInitArguments)

Declaration
public void Init(MyPlanetInitArguments arguments)
Parameters
Type Name Description
MyPlanetInitArguments arguments

Init(MyObjectBuilder_EntityBase)

Declaration
public override void Init(MyObjectBuilder_EntityBase builder)
Parameters
Type Name Description
MyObjectBuilder_EntityBase builder
Overrides
MyEntity.Init(MyObjectBuilder_EntityBase)

Init(MyObjectBuilder_EntityBase, IMyStorage)

Declaration
public override void Init(MyObjectBuilder_EntityBase builder, IMyStorage storage)
Parameters
Type Name Description
MyObjectBuilder_EntityBase builder
VRage.Game.Voxels.IMyStorage storage
Overrides
MyVoxelBase.Init(MyObjectBuilder_EntityBase, IMyStorage)

IntersectsWithGravityFast(ref BoundingBoxD)

Declaration
public bool IntersectsWithGravityFast(ref BoundingBoxD boundingBox)
Parameters
Type Name Description
BoundingBoxD boundingBox
Returns
Type Description
System.Boolean

IsUnderGround(Vector3D)

Declaration
public bool IsUnderGround(Vector3D position)
Parameters
Type Name Description
Vector3D position
Returns
Type Description
System.Boolean

OnAddedToScene(Object)

Declaration
public override void OnAddedToScene(object source)
Parameters
Type Name Description
System.Object source
Overrides
MyEntity.OnAddedToScene(Object)

OnRemovedFromScene(Object)

Declaration
public override void OnRemovedFromScene(object source)
Parameters
Type Name Description
System.Object source
Overrides
MyEntity.OnRemovedFromScene(Object)

PrefetchShapeOnRay(ref LineD, Boolean)

Prefetch voxel physics and creates one if it don't exist

Declaration
public bool PrefetchShapeOnRay(ref LineD ray, bool prefetchOnlyNew = false)
Parameters
Type Name Description
LineD ray
System.Boolean prefetchOnlyNew

when true it starts shape prefetch only when voxel map was created

Returns
Type Description
System.Boolean

RemoveChildEntity(MyEntity)

Declaration
public void RemoveChildEntity(MyEntity child)
Parameters
Type Name Description
MyEntity child

RevertBoulder(MyBoulderInformation)

Declaration
public static void RevertBoulder(MyBoulderInformation boulder)
Parameters
Type Name Description
MyBoulderInformation boulder

RevertBoulderBroadcast(Int64, Int64, Int32)

Declaration
[Event(null, 605)]
[Reliable]
[Broadcast]
public static void RevertBoulderBroadcast(long planetId, long sectorId, int itemId)
Parameters
Type Name Description
System.Int64 planetId
System.Int64 sectorId
System.Int32 itemId

RevertBoulderServer(MyVoxelBase)

Declaration
public static void RevertBoulderServer(MyVoxelBase voxels)
Parameters
Type Name Description
MyVoxelBase voxels

SetStationOreBlockTree(MyDynamicAABBTree)

Declaration
public void SetStationOreBlockTree(MyDynamicAABBTree tree)
Parameters
Type Name Description
MyDynamicAABBTree tree

UpdateAfterSimulation10()

Declaration
public override void UpdateAfterSimulation10()
Overrides
MyEntity.UpdateAfterSimulation10()

UpdateAfterSimulation100()

Declaration
public override void UpdateAfterSimulation100()
Overrides
MyEntity.UpdateAfterSimulation100()

UpdateOnceBeforeFrame()

Declaration
public override void UpdateOnceBeforeFrame()
Overrides
MyEntity.UpdateOnceBeforeFrame()

Explicit Interface Implementations

IMyOxygenProvider.IsPositionInRange(Vector3D)

Declaration
bool IMyOxygenProvider.IsPositionInRange(Vector3D worldPoint)
Parameters
Type Name Description
Vector3D worldPoint
Returns
Type Description
System.Boolean

Implements

IMyVoxelBase
IMyEntity
IMyEntity
IMyDecalProxy
IMyOxygenProvider

Extension Methods

MyEntityInventoryOwnerExtensions.InventoryOwnerType(MyEntity)
MyEntityExtensions.GetPhysicsBody(MyEntity)
MyEntityExtensions.UpdateGamePruningStructure(MyEntity)
MyEntityExtensions.AddToGamePruningStructure(MyEntity)
MyEntityExtensions.RemoveFromGamePruningStructure(MyEntity)
MyEntityExtensions.EntityFactoryCreateObjectBuilder(MyEntity)
MyEntityExtensions.CreateDefaultSyncEntity(MyEntity)
MyEntityExtensions.AddNodeToWeldingGroups(MyEntity)
MyEntityExtensions.RemoveNodeFromWeldingGroups(MyEntity)
MyEntityExtensions.GetWeldingGroupNodes(MyEntity, List<MyEntity>)
MyEntityExtensions.WeldingGroupExists(MyEntity)
MyEntityExtensions.ProceduralWorldGeneratorTrackEntity(MyEntity)
MyEntityExtensions.TryGetInventory(MyEntity, out MyInventoryBase)
MyEntityExtensions.TryGetInventory(MyEntity, out MyInventory)
MyEntityExtensions.GetInventory(MyEntity, Int32)
VoxelBaseExtensions.GetMaterialAt(MyVoxelBase, ref Vector3D)
MyEntityContainerEventExtensions.RaiseEntityEvent(MyEntity, MyStringHash, MyEntityContainerEventExtensions.EntityEventParams)
☀
☾
In This Article
  • Constructors
    • MyPlanet()
  • Fields
    • MemoryTracker
    • PHYSICS_SECTOR_SIZE_METERS
    • RUN_SECTORS
  • Properties
    • AtmosphereAltitude
    • AtmosphereRadius
    • AtmosphereSettings
    • AtmosphereWavelengths
    • AverageRadius
    • Generator
    • GetInitArguments
    • HasAtmosphere
    • MaximumRadius
    • MinimumRadius
    • PositionLeftBottomCorner
    • Provider
    • RootVoxel
    • ScaleGroup
    • SpherizeWithDistance
    • Storage
  • Methods
    • AddChildEntity(MyEntity)
    • AddToStationOreBlockTree(ref MyDynamicAABBTree, Vector3D, Single)
    • AfterPaste()
    • BeforeDelete()
    • BeforePaste()
    • Closing()
    • CorrectSpawnLocation(ref Vector3D, Double)
    • CorrectSpawnLocation2(ref Vector3D, Double, Boolean)
    • DebugDrawPhysics()
    • GetAirDensity(Vector3D)
    • GetClosestSurfacePointGlobal(Vector3D)
    • GetClosestSurfacePointGlobal(ref Vector3D)
    • GetClosestSurfacePointLocal(ref Vector3)
    • GetHeightFromSurface(Vector3D)
    • GetInstanceHash()
    • GetObjectBuilder(Boolean)
    • GetOrePriority()
    • GetOxygenForPosition(Vector3D)
    • GetWindSpeed(Vector3D)
    • Init(MyPlanetInitArguments)
    • Init(MyObjectBuilder_EntityBase)
    • Init(MyObjectBuilder_EntityBase, IMyStorage)
    • IntersectsWithGravityFast(ref BoundingBoxD)
    • IsUnderGround(Vector3D)
    • OnAddedToScene(Object)
    • OnRemovedFromScene(Object)
    • PrefetchShapeOnRay(ref LineD, Boolean)
    • RemoveChildEntity(MyEntity)
    • RevertBoulder(MyBoulderInformation)
    • RevertBoulderBroadcast(Int64, Int64, Int32)
    • RevertBoulderServer(MyVoxelBase)
    • SetStationOreBlockTree(MyDynamicAABBTree)
    • UpdateAfterSimulation10()
    • UpdateAfterSimulation100()
    • UpdateOnceBeforeFrame()
  • Explicit Interface Implementations
    • IMyOxygenProvider.IsPositionInRange(Vector3D)
  • Implements
  • Extension Methods
Back to top
Generated by DocFX
☀
☾