Show / Hide Table of Contents

Class MyFloatingObject

Inheritance
System.Object
MyEntity
MyFloatingObject
Implements
IMyUseObject
IMyFloatingObject
IMyDestroyableObject
IMyParallelUpdateable
IMyEntity
IMyEntity
Inherited Members
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.UpdateOnceBeforeFrame()
MyEntity.UpdateBeforeSimulation()
MyEntity.Simulate()
MyEntity.UpdateAfterSimulation()
MyEntity.UpdatingStopped()
MyEntity.UpdateBeforeSimulation10()
MyEntity.UpdateAfterSimulation10()
MyEntity.UpdateBeforeSimulation100()
MyEntity.UpdateAfterSimulation100()
MyEntity.GetFriendlyName()
MyEntity.GetViewMatrix()
MyEntity.Teleport(MatrixD, Object, Boolean)
MyEntity.DebugDrawPhysics()
MyEntity.GetIntersectionWithLine(LineD, Nullable<Vector3D>, Boolean, IntersectionFlags)
MyEntity.GetIntersectionWithLine(LineD, Nullable<MyIntersectionResultLineTriangleEx>, IntersectionFlags)
MyEntity.GetIntersectionWithLineAndBoundingSphere(LineD, Single)
MyEntity.GetIntersectionWithSphere(BoundingSphereD)
MyEntity.GetIntersectionWithAABB(BoundingBoxD)
MyEntity.GetTrianglesIntersectingSphere(BoundingSphere, Nullable<Vector3>, Nullable<Single>, List<MyTriangle_Vertex_Normals>, Int32)
MyEntity.DoOverlapSphereTest(Single, Vector3D)
MyEntity.GetSmallestDistanceBetweenCameraAndBoundingSphere()
MyEntity.GetLargestDistanceBetweenCameraAndBoundingSphere()
MyEntity.GetDistanceBetweenCameraAndBoundingSphere()
MyEntity.GetDistanceBetweenPlayerPositionAndBoundingSphere()
MyEntity.GetDistanceBetweenCameraAndPosition()
MyEntity.GetBaseEntity()
MyEntity.SetFadeOut(Boolean)
MyEntity.OnRemovedFromScene(Object)
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.BeforeDelete()
MyEntity.Close()
MyEntity.BeforeSave()
MyEntity.PrepareForDraw()
MyEntity.BeforePaste()
MyEntity.AfterPaste()
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.Storage
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.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 MyFloatingObject : MyEntity, IMyUseObject, IMyUsableEntity, IMyFloatingObject, IMyDestroyableObject, IMyEventProxy, IMyEventOwner, IMySyncedEntity, IMyParallelUpdateable, IMyEntity, IMyEntity

Constructors

MyFloatingObject()

Declaration
public MyFloatingObject()

Fields

Amount

Declaration
public Sync<MyFixedPoint, SyncDirection.FromServer> Amount
Field Value
Type Description
VRage.Sync.Sync<VRage.MyFixedPoint, VRage.Sync.SyncDirection.FromServer>

ClosestDistanceToAnyPlayerSquared

Declaration
public float ClosestDistanceToAnyPlayerSquared
Field Value
Type Description
System.Single

CreationTime

Declaration
public long CreationTime
Field Value
Type Description
System.Int64

InventoryFullVoice

Declaration
public static IMySourceVoice InventoryFullVoice
Field Value
Type Description
VRage.Audio.IMySourceVoice

Item

Declaration
public MyPhysicalInventoryItem Item
Field Value
Type Description
MyPhysicalInventoryItem

NUMBER_OF_FRAMES_INSIDE_VOXEL_TO_REMOVE

Declaration
public const int NUMBER_OF_FRAMES_INSIDE_VOXEL_TO_REMOVE = 5
Field Value
Type Description
System.Int32

NumberOfFramesInsideVoxel

Declaration
public int NumberOfFramesInsideVoxel
Field Value
Type Description
System.Int32

ScrapBuilder

Declaration
public static MyObjectBuilder_Ore ScrapBuilder
Field Value
Type Description
MyObjectBuilder_Ore

SyncWaitCounter

Declaration
public long SyncWaitCounter
Field Value
Type Description
System.Int64

TakeItemVoice

Declaration
public static IMySourceVoice TakeItemVoice
Field Value
Type Description
VRage.Audio.IMySourceVoice

VoxelMaterial

Declaration
public MyVoxelMaterialDefinition VoxelMaterial
Field Value
Type Description
MyVoxelMaterialDefinition

Properties

GeneratedGravity

Declaration
public Vector3 GeneratedGravity { get; set; }
Property Value
Type Description
Vector3

Integrity

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

ItemDefinition

Declaration
public MyPhysicalItemDefinition ItemDefinition { get; }
Property Value
Type Description
MyPhysicalItemDefinition

Physics

Declaration
public MyPhysicsBody Physics { get; set; }
Property Value
Type Description
Sandbox.Engine.Physics.MyPhysicsBody

ShouldUpdateTooltips

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

SyncType

Declaration
public SyncType SyncType { get; set; }
Property Value
Type Description
VRage.Sync.SyncType

UpdateFlags

Declaration
public MyParallelUpdateFlags UpdateFlags { get; }
Property Value
Type Description
MyParallelUpdateFlags

UseDamageSystem

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

WasRemovedFromWorld

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

Methods

Closing()

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

DoDamage(Single, MyStringHash, Boolean, Int64, Nullable<MyStringHash>)

Declaration
public bool DoDamage(float damage, MyStringHash damageType, bool sync, long attackerId, Nullable<MyStringHash> extraInfo)
Parameters
Type Name Description
System.Single damage
MyStringHash damageType
System.Boolean sync
System.Int64 attackerId
System.Nullable<MyStringHash> extraInfo
Returns
Type Description
System.Boolean

GetObjectBuilder(Boolean)

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

GetPhysicsShape(Single, Single, out HkMassProperties)

Declaration
protected virtual HkShape GetPhysicsShape(float mass, float scale, out HkMassProperties massProperties)
Parameters
Type Name Description
System.Single mass
System.Single scale
Havok.HkMassProperties massProperties
Returns
Type Description
Havok.HkShape

HasConstraints()

Declaration
public bool HasConstraints()
Returns
Type Description
System.Boolean

Init(MyObjectBuilder_EntityBase)

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

OnAddedToScene(Object)

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

OnDestroy()

Declaration
public void OnDestroy()

OnReplicationEnded()

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

OnReplicationStarted()

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

RefreshDisplayName()

Declaration
public void RefreshDisplayName()

RemoveUsers(Boolean)

Declaration
public void RemoveUsers(bool local)
Parameters
Type Name Description
System.Boolean local

SendCloseRequest()

Declaration
public void SendCloseRequest()

UpdateAfterSimulationParallel()

Declaration
public void UpdateAfterSimulationParallel()

UpdateBeforeSimulationParallel()

Declaration
public void UpdateBeforeSimulationParallel()

UpdateInternalState()

Declaration
public void UpdateInternalState()

Explicit Interface Implementations

IMyUseObject.ActivationMatrix

Declaration
MatrixD IMyUseObject.ActivationMatrix { get; }
Returns
Type Description
MatrixD

IMyUseObject.ContinuousUsage

Declaration
bool IMyUseObject.ContinuousUsage { get; }
Returns
Type Description
System.Boolean

IMyUseObject.Dummy

Declaration
IMyModelDummy IMyUseObject.Dummy { get; }
Returns
Type Description
IMyModelDummy

IMyUseObject.GetActionInfo(UseActionEnum)

Declaration
MyActionDescription IMyUseObject.GetActionInfo(UseActionEnum actionEnum)
Parameters
Type Name Description
UseActionEnum actionEnum
Returns
Type Description
MyActionDescription

IMyUseObject.HandleInput()

Declaration
bool IMyUseObject.HandleInput()
Returns
Type Description
System.Boolean

IMyUseObject.InstanceID

Declaration
int IMyUseObject.InstanceID { get; }
Returns
Type Description
System.Int32

IMyUseObject.InteractiveDistance

Declaration
float IMyUseObject.InteractiveDistance { get; }
Returns
Type Description
System.Single

IMyUseObject.OnSelectionLost()

Declaration
void IMyUseObject.OnSelectionLost()

IMyUseObject.Owner

Declaration
IMyEntity IMyUseObject.Owner { get; }
Returns
Type Description
IMyEntity

IMyUseObject.PlayIndicatorSound

Declaration
bool IMyUseObject.PlayIndicatorSound { get; }
Returns
Type Description
System.Boolean

IMyUseObject.PrimaryAction

Declaration
UseActionEnum IMyUseObject.PrimaryAction { get; }
Returns
Type Description
UseActionEnum

IMyUseObject.RenderObjectID

Declaration
uint IMyUseObject.RenderObjectID { get; }
Returns
Type Description
System.UInt32

IMyUseObject.SecondaryAction

Declaration
UseActionEnum IMyUseObject.SecondaryAction { get; }
Returns
Type Description
UseActionEnum

IMyUseObject.SetInstanceID(Int32)

Declaration
void IMyUseObject.SetInstanceID(int id)
Parameters
Type Name Description
System.Int32 id

IMyUseObject.SetRenderID(UInt32)

Declaration
void IMyUseObject.SetRenderID(uint id)
Parameters
Type Name Description
System.UInt32 id

IMyUseObject.ShowOverlay

Declaration
bool IMyUseObject.ShowOverlay { get; }
Returns
Type Description
System.Boolean

IMyUseObject.SupportedActions

Declaration
UseActionEnum IMyUseObject.SupportedActions { get; }
Returns
Type Description
UseActionEnum

IMyUseObject.Use(UseActionEnum, IMyEntity)

Declaration
void IMyUseObject.Use(UseActionEnum actionEnum, IMyEntity entity)
Parameters
Type Name Description
UseActionEnum actionEnum
IMyEntity entity

IMyUseObject.WorldMatrix

Declaration
MatrixD IMyUseObject.WorldMatrix { get; }
Returns
Type Description
MatrixD

IMyDestroyableObject.DoDamage(Single, MyStringHash, Boolean, Nullable<MyHitInfo>, Int64, Int64, Boolean, Nullable<MyStringHash>)

Declaration
bool IMyDestroyableObject.DoDamage(float damage, MyStringHash damageType, bool sync, Nullable<MyHitInfo> hitInfo, long attackerId, long realHitEntityId, bool shouldDetonateAmmo, Nullable<MyStringHash> extraInfo)
Parameters
Type Name Description
System.Single damage
MyStringHash damageType
System.Boolean sync
System.Nullable<MyHitInfo> hitInfo
System.Int64 attackerId
System.Int64 realHitEntityId
System.Boolean shouldDetonateAmmo
System.Nullable<MyStringHash> extraInfo
Returns
Type Description
System.Boolean

IMyDestroyableObject.Integrity

Declaration
float IMyDestroyableObject.Integrity { get; }
Returns
Type Description
System.Single

IMyDestroyableObject.OnDestroy()

Declaration
void IMyDestroyableObject.OnDestroy()

IMyDestroyableObject.UseDamageSystem

Declaration
bool IMyDestroyableObject.UseDamageSystem { get; }
Returns
Type Description
System.Boolean

Implements

IMyUseObject
IMyFloatingObject
IMyDestroyableObject
IMyParallelUpdateable
IMyEntity
IMyEntity

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)
MyEntityContainerEventExtensions.RaiseEntityEvent(MyEntity, MyStringHash, MyEntityContainerEventExtensions.EntityEventParams)
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾