Class MyFractureComponentCubeBlock
Inheritance
System.Object
MyFractureComponentCubeBlock
Assembly: Sandbox.Game.dll
Syntax
[MyComponentBuilder]
public class MyFractureComponentCubeBlock : MyFractureComponentBase, IMyEntityComponentBase, IMyComponentBase
Constructors
MyFractureComponentCubeBlock()
Declaration
public MyFractureComponentCubeBlock()
Properties
Block
Declaration
public MySlimBlock Block { get; }
Property Value
Type |
Description |
Sandbox.Game.Entities.Cube.MySlimBlock |
|
MountPoints
Mountpoints rotated by block orientation.
Declaration
public MyCubeBlockDefinition.MountPoint[] MountPoints { get; }
Property Value
PhysicalModelDefinition
Declaration
public override MyPhysicalModelDefinition PhysicalModelDefinition { get; }
Property Value
Overrides
Methods
AddMountForShape(HkdBreakableShape, Matrix, ref BoundingBox, Single, List<MyCubeBlockDefinition.MountPoint>)
Declaration
public static HkdBreakableShape AddMountForShape(HkdBreakableShape shape, Matrix transform, ref BoundingBox blockBB, float gridSize, List<MyCubeBlockDefinition.MountPoint> outMountPoints)
Parameters
Returns
Type |
Description |
Havok.HkdBreakableShape |
|
Deserialize(MyObjectBuilder_ComponentBase)
Declaration
public override void Deserialize(MyObjectBuilder_ComponentBase builder)
Parameters
Overrides
GetIntegrityRatioFromFracturedPieceCounts()
Declaration
public float GetIntegrityRatioFromFracturedPieceCounts()
Returns
Type |
Description |
System.Single |
|
OnAddedToContainer()
Declaration
public override void OnAddedToContainer()
Overrides
OnBeforeRemovedFromContainer()
Declaration
public override void OnBeforeRemovedFromContainer()
Overrides
OnCubeGridChanged()
Declaration
public void OnCubeGridChanged()
RecreateShape(List<MyObjectBuilder_FractureComponentBase.FracturedShape>)
Declaration
protected override void RecreateShape(List<MyObjectBuilder_FractureComponentBase.FracturedShape> shapeList)
Parameters
Overrides
RemoveChildShapes(IEnumerable<String>)
Declaration
public override bool RemoveChildShapes(IEnumerable<string> shapeNames)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
shapeNames |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Serialize(Boolean)
Declaration
public override MyObjectBuilder_ComponentBase Serialize(bool copy = false)
Parameters
Type |
Name |
Description |
System.Boolean |
copy |
|
Returns
Overrides
SetShape(HkdBreakableShape, Boolean)
Declaration
public override void SetShape(HkdBreakableShape shape, bool compound)
Parameters
Type |
Name |
Description |
Havok.HkdBreakableShape |
shape |
|
System.Boolean |
compound |
|
Overrides
Extension Methods