Space Engineers
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
Sandbox.Game.Entities.Cube.MyGridShape Class Reference
Inheritance diagram for Sandbox.Game.Entities.Cube.MyGridShape:

Public Member Functions

 MyGridShape (MyCubeGrid grid)
 
void GetShapesInInterval (Vector3I min, Vector3I max, List< HkShape > shapeList)
 
void Dispose ()
 
void RefreshBlocks (HkRigidBody rigidBody, HkRigidBody rigidBody2, MyGridPhysics.MyDirtyBlocksInfo dirtyCubesInfo, HkdBreakableBody destructionBody=null, bool blocksChanged=true)
 
void FindConnectionsToWorld ()
 
void RecalculateConnectionsToWorld (HashSet< MySlimBlock > blocks)
 
void CreateConnectionToWorld (HkdBreakableBody destructionBody, HkWorld havokWorld)
 
HkdBreakableShape CreateBreakableShape ()
 
void CreateConnectionsManually (HkdBreakableShape shape)
 
void MarkBreakable (HkWorld world, HkRigidBody rigidBody)
 
void UnmarkBreakable (HkWorld world, HkRigidBody rigidBody)
 
void RefreshMass ()
 
void UpdateMassFromInventories (HashSet< MySlimBlock > blocks, MyPhysicsBody rb)
 
float GetBlockMass (Vector3I position)
 

Static Public Member Functions

static void ConnectShapesWithChildren (HkdBreakableShape parent, HkdBreakableShape shapeA, HkdBreakableShape shapeB)
 
static implicit operator HkShape (MyGridShape shape)
 

Public Attributes

HashSet< Vector3IBlocksConnectedToWorld = new HashSet<Vector3I>()
 

Static Public Attributes

static uint INVALID_COMPOUND_ID = 0xFFFFFFFF
 

Properties

float BreakImpulse [get]
 
HkdBreakableShape BreakableShape [get, set]
 
HkMassProperties MassProperties [get]
 
HkMassProperties BaseMassProperties [get]
 

Detailed Description

Definition at line 31 of file MyGridShape.cs.

Constructor & Destructor Documentation

Sandbox.Game.Entities.Cube.MyGridShape.MyGridShape ( MyCubeGrid  grid)
inline

Definition at line 89 of file MyGridShape.cs.

Member Function Documentation

static void Sandbox.Game.Entities.Cube.MyGridShape.ConnectShapesWithChildren ( HkdBreakableShape  parent,
HkdBreakableShape  shapeA,
HkdBreakableShape  shapeB 
)
inlinestatic

Definition at line 1170 of file MyGridShape.cs.

HkdBreakableShape Sandbox.Game.Entities.Cube.MyGridShape.CreateBreakableShape ( )
inline

Definition at line 626 of file MyGridShape.cs.

void Sandbox.Game.Entities.Cube.MyGridShape.CreateConnectionsManually ( HkdBreakableShape  shape)
inline

Definition at line 1016 of file MyGridShape.cs.

void Sandbox.Game.Entities.Cube.MyGridShape.CreateConnectionToWorld ( HkdBreakableBody  destructionBody,
HkWorld  havokWorld 
)
inline

Definition at line 608 of file MyGridShape.cs.

void Sandbox.Game.Entities.Cube.MyGridShape.Dispose ( )
inline

Definition at line 153 of file MyGridShape.cs.

void Sandbox.Game.Entities.Cube.MyGridShape.FindConnectionsToWorld ( )
inline

Definition at line 593 of file MyGridShape.cs.

float Sandbox.Game.Entities.Cube.MyGridShape.GetBlockMass ( Vector3I  position)
inline

Definition at line 1361 of file MyGridShape.cs.

void Sandbox.Game.Entities.Cube.MyGridShape.GetShapesInInterval ( Vector3I  min,
Vector3I  max,
List< HkShape >  shapeList 
)
inline

Definition at line 119 of file MyGridShape.cs.

void Sandbox.Game.Entities.Cube.MyGridShape.MarkBreakable ( HkWorld  world,
HkRigidBody  rigidBody 
)
inline

Definition at line 1229 of file MyGridShape.cs.

static implicit Sandbox.Game.Entities.Cube.MyGridShape.operator HkShape ( MyGridShape  shape)
inlinestatic

Definition at line 1356 of file MyGridShape.cs.

void Sandbox.Game.Entities.Cube.MyGridShape.RecalculateConnectionsToWorld ( HashSet< MySlimBlock blocks)
inline

Definition at line 598 of file MyGridShape.cs.

void Sandbox.Game.Entities.Cube.MyGridShape.RefreshBlocks ( HkRigidBody  rigidBody,
HkRigidBody  rigidBody2,
MyGridPhysics.MyDirtyBlocksInfo  dirtyCubesInfo,
HkdBreakableBody  destructionBody = null,
bool  blocksChanged = true 
)
inline

Definition at line 185 of file MyGridShape.cs.

void Sandbox.Game.Entities.Cube.MyGridShape.RefreshMass ( )
inline

Definition at line 1262 of file MyGridShape.cs.

void Sandbox.Game.Entities.Cube.MyGridShape.UnmarkBreakable ( HkWorld  world,
HkRigidBody  rigidBody 
)
inline

Definition at line 1246 of file MyGridShape.cs.

void Sandbox.Game.Entities.Cube.MyGridShape.UpdateMassFromInventories ( HashSet< MySlimBlock blocks,
MyPhysicsBody  rb 
)
inline

Definition at line 1270 of file MyGridShape.cs.

Member Data Documentation

HashSet<Vector3I> Sandbox.Game.Entities.Cube.MyGridShape.BlocksConnectedToWorld = new HashSet<Vector3I>()

Definition at line 607 of file MyGridShape.cs.

uint Sandbox.Game.Entities.Cube.MyGridShape.INVALID_COMPOUND_ID = 0xFFFFFFFF
static

Definition at line 73 of file MyGridShape.cs.

Property Documentation

HkMassProperties Sandbox.Game.Entities.Cube.MyGridShape.BaseMassProperties
get

Definition at line 85 of file MyGridShape.cs.

HkdBreakableShape Sandbox.Game.Entities.Cube.MyGridShape.BreakableShape
getset

Definition at line 62 of file MyGridShape.cs.

float Sandbox.Game.Entities.Cube.MyGridShape.BreakImpulse
get

Definition at line 34 of file MyGridShape.cs.

HkMassProperties Sandbox.Game.Entities.Cube.MyGridShape.MassProperties
get

Definition at line 80 of file MyGridShape.cs.


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