Space Engineers
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Properties | List of all members
Sandbox.Game.Entities.Cube.MyGridPhysics Class Reference
Inheritance diagram for Sandbox.Game.Entities.Cube.MyGridPhysics:
Sandbox.Engine.Physics.MyPhysicsBody Sandbox.Engine.Physics.MyPhysicsBody VRage.Game.Components.MyPhysicsComponentBase VRageMath.Spatial.MyClusterTree.IMyActivationHandler VRage.Game.Components.MyPhysicsComponentBase VRageMath.Spatial.MyClusterTree.IMyActivationHandler VRage.Game.Components.MyEntityComponentBase VRage.Game.Components.MyEntityComponentBase VRage.Game.Components.MyComponentBase VRage.Game.Components.MyComponentBase

Classes

class  MyDirtyBlocksInfo
 Information about dirty (added, removed,...) blocks. More...
 
class  PredictiveDestructionData
 

Public Member Functions

 MyGridPhysics (MyCubeGrid grid, MyGridShape shape=null)
 
override void Close ()
 Initializes a new instance of the MyPhysicsBody class. More...
 
override void Activate (object world, ulong clusterObjectID)
 Called when standalone object is added to cluster More...
 
override void ActivateBatch (object world, ulong clusterObjectID)
 Called when multiple objects are added to cluster. More...
 
override void Deactivate (object world)
 Called when standalone object is removed from cluster More...
 
override void DeactivateBatch (object world)
 Called when multiple objects are removed from cluster. More...
 
override HkShape GetShape ()
 Gets shape of this physics body even if its welded with other More...
 
void PerformMeteoritDeformation (ref HkBreakOffPointInfo pt, float separatingVelocity)
 
int ApplyDeformation (float deformationOffset, float softAreaPlanar, float softAreaVertical, Vector3 localPos, Vector3 localNormal, MyStringHash damageType, float offsetThreshold=0, float lowerRatioLimit=0, long attackerId=0)
 Applies deformation, returns true when block was destroyed (explosion should be generated) More...
 
override MyStringHash GetMaterialAt (Vector3D worldPos)
 
void AddDirtyBlock (MySlimBlock block)
 For large continuous areas use AddDirtyArea, internal processing is much faster because taking advantage of aabb tests More...
 
void AddDirtyArea (Vector3I min, Vector3I max)
 
void UpdateShape ()
 
void UpdateMass ()
 
void AddBlock (MySlimBlock block)
 
override void DebugDraw ()
 Debug draw of this physics object. More...
 
void ConvertToDynamic (bool doubledKinematic)
 Checks if the last block in grid has fracture component and converts it into fracture pieces. More...
 
void ConvertToStatic ()
 
override void FracturedBody_AfterReplaceBody (ref HkdReplaceBodyEvent e)
 
List< MyFracturedBlock.InfoGetFracturedBlocks ()
 
List< MyFractureComponentBase.InfoGetFractureBlockComponents ()
 
void ClearFractureBlockComponents ()
 
bool CheckLastDestroyedBlockFracturePieces ()
 
- Public Member Functions inherited from Sandbox.Engine.Physics.MyPhysicsBody
delegate void PhysicsContactHandler (ref MyPhysics.MyContactPointEvent e)
 
 MyPhysicsBody ()
 
 MyPhysicsBody (IMyEntity entity, RigidBodyFlag flags)
 Initializes a new instance of the MyPhysicsBody class. More...
 
override void AddForce (MyPhysicsForceType type, Vector3?force, Vector3D?position, Vector3?torque)
 Applies external force to the physics object. More...
 
override void ApplyImpulse (Vector3 impulse, Vector3D pos)
 Applies the impulse. More...
 
override void ClearSpeed ()
 Clears the speeds. More...
 
override void Clear ()
 Clear all dynamic values of physics object. More...
 
virtual void CreateFromCollisionObject (HkShape shape, Vector3 center, MatrixD worldTransform, HkMassProperties?massProperties=null, int collisionFilter=MyPhysics.CollisionLayers.DefaultCollisionLayer)
 
void PlayContactSound (HkContactPointEvent value, float volume=0)
 
override void CreateCharacterCollision (Vector3 center, float characterWidth, float characterHeight, float crouchHeight, float ladderHeight, float headSize, float headHeight, MatrixD worldTransform, float mass, ushort collisionLayer, bool isOnlyVertical, float maxSlope, float maxImpulse, float maxSpeedRelativeToShip, bool networkProxy, float?maxForce=null)
 
override void Deactivate ()
 Deactivates this rigid body in physics. More...
 
void FinishAddBatch ()
 Called when adding multiple objects is finished. More...
 
void FinishRemoveBatch (object userData)
 Called when removing multiple objects is finished. More...
 
override void ForceActivate ()
 
virtual void OnMotion (HkRigidBody rbo, float step, bool fromParent=false)
 Called when [motion]. More...
 
void SynchronizeKeyframedRigidBody ()
 
override MatrixD GetWorldMatrix ()
 
override Vector3 GetVelocityAtPoint (Vector3D worldPos)
 
override void OnWorldPositionChanged (object source)
 Called when [world position changed]. More...
 
virtual void ChangeQualityType (HkCollidableQualityType quality)
 
void AddConstraint (HkConstraint constraint)
 
void RemoveConstraint (HkConstraint constraint)
 
override Vector3D WorldToCluster (Vector3D worldPos)
 Converts global space position to local cluster space. More...
 
override Vector3D ClusterToWorld (Vector3 clusterPos)
 Converts local cluster position to global space. More...
 
override void Activate ()
 Activates this rigid body in physics. More...
 
void UpdateCluster ()
 
override void Init (MyComponentDefinitionBase definition)
 
override void OnAddedToContainer ()
 Gets called after the container of this component changes More...
 
override void OnAddedToScene ()
 CH: TOOD: Be careful! This does not get called if the component is added to a container that is in the scene already! More...
 
override void UpdateFromSystem ()
 
void CloseRagdoll ()
 
void SwitchToRagdollMode (bool deadMode=true, int firstRagdollSubID=1)
 
void CloseRagdollMode ()
 
void CloseRagdollMode (HkWorld world)
 
void SetRagdollDefaults ()
 Sets default values for ragdoll bodies and constraints - useful if ragdoll model is not correct More...
 
void Weld (MyPhysicsComponentBase other, bool recreateShape=true)
 
void Weld (MyPhysicsBody other, bool recreateShape=true)
 
void RecreateWeldedShape ()
 
void UpdateMassProps ()
 
void UnweldAll (bool insertInWorld)
 
void Unweld (MyPhysicsBody other, bool insertToWorld=true, bool recreateShape=true)
 
void Unweld (bool insertInWorld=true)
 
- Public Member Functions inherited from VRage.Game.Components.MyPhysicsComponentBase
void UpdateAccelerations ()
 
void SetSpeeds (Vector3 linear, Vector3 angular)
 Set the current linear and angular velocities of this physics body. More...
 
override void Init (MyComponentDefinitionBase definition)
 
override void OnAddedToContainer ()
 Gets called after the container of this component changes More...
 
override void OnBeforeRemovedFromContainer ()
 Gets called before the removal of this component from a container More...
 
override bool IsSerialized ()
 Tells the component container serializer whether this component should be saved More...
 
override MyObjectBuilder_ComponentBase Serialize (bool copy=false)
 
override void Deserialize (MyObjectBuilder_ComponentBase baseBuilder)
 
- Public Member Functions inherited from VRage.Game.Components.MyComponentBase
virtual void SetContainer (MyComponentContainer container)
 Sets the container of this component. Note that the component is not added to the container here! Therefore, use MyComponentContainer.Add(...) method and it will in turn call this method. Actually, you should seldom have the need to call this method yourself. More...
 
virtual T GetAs< T > ()
 
virtual void OnRemovedFromScene ()
 CH: TOOD: Be careful! This does not get called if the component is removed from a container that is still in the scene! More...
 

Static Public Member Functions

static float ShipMaxLinearVelocity ()
 
static float LargeShipMaxLinearVelocity ()
 
static float SmallShipMaxLinearVelocity ()
 
static float GetShipMaxAngularVelocity (MyCubeSize size)
 
static float GetLargeShipMaxAngularVelocity ()
 
static float GetSmallShipMaxAngularVelocity ()
 
static void CreateDestructionEffect (MyParticleEffectsIDEnum effectId, Vector3D position, Vector3 direction, float scale)
 
- Static Public Member Functions inherited from Sandbox.Engine.Physics.MyPhysicsBody
static bool IsConstraintValid (HkConstraint constraint)
 

Public Attributes

const float MAX_SHIP_SPEED = SPEED_OF_LIGHT_IN_VACUUM / 2.0f
 
int DisableGravity = 0
 
float DeformationRatio
 
- Public Attributes inherited from Sandbox.Engine.Physics.MyPhysicsBody
HkSolverDeactivation InitialSolverDeactivation = HkSolverDeactivation.Low
 Must be set before creating rigid body More...
 
readonly MyWeldInfo WeldInfo = new MyWeldInfo()
 
- Public Attributes inherited from VRage.Game.Components.MyPhysicsComponentBase
ushort ContactPointDelay = 0xffff
 Must be set before creating rigid body More...
 
RigidBodyFlag Flags
 
bool IsPhantom
 Use something from Havok to detect this More...
 

Static Public Attributes

static readonly float LargeShipMaxAngularVelocityLimit = MathHelper.ToRadians(18000)
 
static readonly float SmallShipMaxAngularVelocityLimit = MathHelper.ToRadians(36000)
 

Protected Member Functions

override void ActivateCollision ()
 
override void CreateBody (ref HkShape shape, HkMassProperties?massProperties)
 
override void OnWelded (MyPhysicsBody other)
 
override void OnUnwelded (MyPhysicsBody other)
 
- Protected Member Functions inherited from Sandbox.Engine.Physics.MyPhysicsBody
override void CloseRigidBody ()
 
void GetRigidBodyMatrix (out Matrix m)
 
Matrix GetRigidBodyMatrix (MatrixD worldMatrix)
 

Properties

MyGridShape Shape [get]
 
HashSetReader< Vector3IDirtyCubes [get]
 
override int HavokCollisionSystemID [get, protected set]
 
- Properties inherited from Sandbox.Engine.Physics.MyPhysicsBody
ulong ClusterObjectID [get, set]
 
new MyPhysicsBodyComponentDefinition Definition [get]
 
HkWorld HavokWorld [get]
 
virtual int HavokCollisionSystemID [get, protected set]
 
override HkRigidBody RigidBody [get, protected set]
 
override HkRigidBody RigidBody2 [get, protected set]
 
override float Mass [get]
 Gets or sets the mass. More...
 
override float Speed [get]
 Gets or sets the speed. More...
 
override float Friction [get, set]
 
override bool IsStatic [get]
 
override bool IsKinematic [get]
 
bool IsSubpart [get, set]
 
MyCharacterProxy CharacterProxy [get, set]
 
int CharacterSystemGroupCollisionFilterID [get]
 This system group id will is used to set's this character rigid bodies collision filters. More...
 
uint CharacterCollisionFilter [get]
 This is character collision filter, use this to avoid collisions with character and character holding bodies. More...
 
override bool IsInWorld [get, protected set]
 
override Vector3 LinearVelocity [get, set]
 Gets or sets the linear velocity. More...
 
override float LinearDamping [get, set]
 Gets or sets the linear damping. More...
 
override float AngularDamping [get, set]
 Gets or sets the angular damping. More...
 
override Vector3 AngularVelocity [get, set]
 Gets or sets the angular velocity. More...
 
override bool IsMoving [get]
 Returns true when linear velocity or angular velocity is non-zero. More...
 
override Vector3 Gravity [get]
 
override bool HasRigidBody [get]
 
override Vector3D CenterOfMassWorld [get]
 
HashSetReader< HkConstraint > Constraints [get]
 
virtual bool IsStaticForCluster [get, set]
 
override HkdBreakableBody BreakableBody [get, set]
 
int RagdollSystemGroupCollisionFilterID [get]
 This System Collision ID is used for ragdoll in non-dead mode to avoid collision with character's rigid body. More...
 
bool IsRagdollModeActive [get]
 Returns true when ragdoll is in world More...
 
HkRagdoll Ragdoll [get, set]
 
bool ReactivateRagdoll [get, set]
 
bool SwitchToRagdollModeOnActivate [get, set]
 
bool IsWelded [get]
 
HkRigidBody WeldedRigidBody [get, protected set]
 
- Properties inherited from VRage.Game.Components.MyPhysicsComponentBase
bool ReportAllContacts [get, set]
 
IMyEntity Entity [get, protected set]
 
bool CanUpdateAccelerations [get, set]
 
MyStringHash MaterialType [get, set]
 Gets or sets the type of the material. More...
 
virtual bool IsStatic [get]
 Gets or sets a value indicating whether this MyGameRigidBody is static. More...
 
virtual bool IsKinematic [get]
 Gets or sets a value indicating whether this MyGameRigidBody is kinematic. More...
 
virtual bool Enabled [get, set]
 Gets or sets a value indicating whether this MyPhysicsBody is enabled. More...
 
bool PlayCollisionCueEnabled [get, set]
 Gets or sets a value indicating whether [play collision cue enabled]. More...
 
abstract float Mass [get]
 Gets or sets the type of the material. More...
 
Vector3 Center [get, set]
 
abstract Vector3 LinearVelocity [get, set]
 Gets or sets the linear velocity. More...
 
virtual Vector3 LinearAcceleration [get, protected set]
 
virtual Vector3 AngularAcceleration [get, protected set]
 
abstract float LinearDamping [get, set]
 Gets or sets the linear damping. More...
 
abstract float AngularDamping [get, set]
 Gets or sets the angular damping. More...
 
abstract Vector3 AngularVelocity [get, set]
 Gets or sets the angular velocity. More...
 
abstract float Speed [get]
 Gets or sets the speed. More...
 
abstract float Friction [get, set]
 
abstract HkRigidBody RigidBody [get, protected set]
 Obtain/set (default) rigid body of this physics object. More...
 
abstract HkRigidBody RigidBody2 [get, protected set]
 Obtain/set secondary rigid body of this physics object (not used by default, it is used sometimes on grids for kinematic layer). More...
 
abstract HkdBreakableBody BreakableBody [get, set]
 
abstract bool IsMoving [get]
 
abstract Vector3 Gravity [get]
 
MyPhysicsComponentDefinitionBase Definition [get]
 
MatrixD ServerWorldMatrix [get, set]
 
abstract bool HasRigidBody [get]
 
abstract Vector3D CenterOfMassWorld [get]
 
virtual bool IsInWorld [get, protected set]
 
override string ComponentTypeDebugString [get]
 
- Properties inherited from VRage.Game.Components.MyEntityComponentBase
MyEntityComponentContainer Container [get]
 
IMyEntity Entity [get]
 
abstract string ComponentTypeDebugString [get]
 Name of the base component type for debug purposes (e.g.: "Position") More...
 
- Properties inherited from VRage.Game.Components.MyComponentBase
MyComponentContainer ContainerBase [get]
 This cannot be named Container to not conflict with the definition of Container in MyEntityComponentBase. More...
 
- Properties inherited from VRageMath.Spatial.MyClusterTree.IMyActivationHandler
bool IsStaticForCluster [get]
 If true, than this object is not calculated into cluster division algorithm. It is just added or removed if dynamic object is in range. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from Sandbox.Engine.Physics.MyPhysicsBody
static void GetInfoFromFlags (HkRigidBodyCinfo rbInfo, RigidBodyFlag flags)
 
- Protected Attributes inherited from Sandbox.Engine.Physics.MyPhysicsBody
float m_angularDamping
 
float m_linearDamping
 
Vector3D Offset = Vector3D.Zero
 
Matrix m_bodyMatrix
 
HkWorld m_world
 
HkRagdoll m_ragdoll
 
- Protected Attributes inherited from VRage.Game.Components.MyPhysicsComponentBase
bool m_enabled
 
- Events inherited from Sandbox.Engine.Physics.MyPhysicsBody
PhysicsContactHandler ContactPointCallback
 
- Events inherited from VRage.Game.Components.MyEntityComponentBase
static Action< MyEntityComponentBaseOnAfterAddedToContainer
 
Action< MyEntityComponentBaseBeforeRemovedFromContainer
 

Detailed Description

Definition at line 44 of file MyGridPhysics.cs.

Constructor & Destructor Documentation

Sandbox.Game.Entities.Cube.MyGridPhysics.MyGridPhysics ( MyCubeGrid  grid,
MyGridShape  shape = null 
)
inline

Definition at line 154 of file MyGridPhysics.cs.

Member Function Documentation

override void Sandbox.Game.Entities.Cube.MyGridPhysics.Activate ( object  userData,
ulong  clusterObjectID 
)
inlinevirtual

Called when standalone object is added to cluster

Parameters
userData
clusterObjectID

Reimplemented from Sandbox.Engine.Physics.MyPhysicsBody.

Definition at line 328 of file MyGridPhysics.cs.

override void Sandbox.Game.Entities.Cube.MyGridPhysics.ActivateBatch ( object  userData,
ulong  clusterObjectID 
)
inlinevirtual

Called when multiple objects are added to cluster.

Parameters
userData
clusterObjectID

Reimplemented from Sandbox.Engine.Physics.MyPhysicsBody.

Definition at line 340 of file MyGridPhysics.cs.

override void Sandbox.Game.Entities.Cube.MyGridPhysics.ActivateCollision ( )
inlineprotectedvirtual

Reimplemented from Sandbox.Engine.Physics.MyPhysicsBody.

Definition at line 322 of file MyGridPhysics.cs.

void Sandbox.Game.Entities.Cube.MyGridPhysics.AddBlock ( MySlimBlock  block)
inline

Definition at line 1424 of file MyGridPhysics.cs.

void Sandbox.Game.Entities.Cube.MyGridPhysics.AddDirtyArea ( Vector3I  min,
Vector3I  max 
)
inline

Definition at line 1205 of file MyGridPhysics.cs.

void Sandbox.Game.Entities.Cube.MyGridPhysics.AddDirtyBlock ( MySlimBlock  block)
inline

For large continuous areas use AddDirtyArea, internal processing is much faster because taking advantage of aabb tests

Definition at line 1182 of file MyGridPhysics.cs.

int Sandbox.Game.Entities.Cube.MyGridPhysics.ApplyDeformation ( float  deformationOffset,
float  softAreaPlanar,
float  softAreaVertical,
Vector3  localPos,
Vector3  localNormal,
MyStringHash  damageType,
float  offsetThreshold = 0,
float  lowerRatioLimit = 0,
long  attackerId = 0 
)
inline

Applies deformation, returns true when block was destroyed (explosion should be generated)

Parameters
deformationOffsetAmount of deformation in the localPos
offsetThresholdWhen deformation offset for bone is lower then threshold, it won't move the bone at all or do damage

Definition at line 783 of file MyGridPhysics.cs.

bool Sandbox.Game.Entities.Cube.MyGridPhysics.CheckLastDestroyedBlockFracturePieces ( )
inline

Definition at line 1133 of file MyGridPhysics.Destruction.cs.

void Sandbox.Game.Entities.Cube.MyGridPhysics.ClearFractureBlockComponents ( )
inline

Definition at line 375 of file MyGridPhysics.Destruction.cs.

override void Sandbox.Game.Entities.Cube.MyGridPhysics.Close ( )
inlinevirtual

Initializes a new instance of the MyPhysicsBody class.

Parameters
entityThe entity.

Reimplemented from Sandbox.Engine.Physics.MyPhysicsBody.

Definition at line 175 of file MyGridPhysics.cs.

void Sandbox.Game.Entities.Cube.MyGridPhysics.ConvertToDynamic ( bool  doubledKinematic)
inline

Checks if the last block in grid has fracture component and converts it into fracture pieces.

Definition at line 1591 of file MyGridPhysics.cs.

void Sandbox.Game.Entities.Cube.MyGridPhysics.ConvertToStatic ( )
inline

Definition at line 1651 of file MyGridPhysics.cs.

override void Sandbox.Game.Entities.Cube.MyGridPhysics.CreateBody ( ref HkShape  shape,
HkMassProperties?  massProperties 
)
inlineprotectedvirtual

Reimplemented from Sandbox.Engine.Physics.MyPhysicsBody.

Definition at line 1439 of file MyGridPhysics.cs.

static void Sandbox.Game.Entities.Cube.MyGridPhysics.CreateDestructionEffect ( MyParticleEffectsIDEnum  effectId,
Vector3D  position,
Vector3  direction,
float  scale 
)
inlinestatic

Definition at line 1154 of file MyGridPhysics.cs.

override void Sandbox.Game.Entities.Cube.MyGridPhysics.Deactivate ( object  userData)
inlinevirtual

Called when standalone object is removed from cluster

Parameters
userData

Reimplemented from Sandbox.Engine.Physics.MyPhysicsBody.

Definition at line 353 of file MyGridPhysics.cs.

override void Sandbox.Game.Entities.Cube.MyGridPhysics.DeactivateBatch ( object  userData)
inlinevirtual

Called when multiple objects are removed from cluster.

Parameters
userData

Reimplemented from Sandbox.Engine.Physics.MyPhysicsBody.

Definition at line 360 of file MyGridPhysics.cs.

override void Sandbox.Game.Entities.Cube.MyGridPhysics.DebugDraw ( )
inlinevirtual

Debug draw of this physics object.

Reimplemented from Sandbox.Engine.Physics.MyPhysicsBody.

Definition at line 1498 of file MyGridPhysics.cs.

override void Sandbox.Game.Entities.Cube.MyGridPhysics.FracturedBody_AfterReplaceBody ( ref HkdReplaceBodyEvent  e)
inlinevirtual

Reimplemented from Sandbox.Engine.Physics.MyPhysicsBody.

Definition at line 59 of file MyGridPhysics.Destruction.cs.

List<MyFractureComponentBase.Info> Sandbox.Game.Entities.Cube.MyGridPhysics.GetFractureBlockComponents ( )
inline

Definition at line 374 of file MyGridPhysics.Destruction.cs.

List<MyFracturedBlock.Info> Sandbox.Game.Entities.Cube.MyGridPhysics.GetFracturedBlocks ( )
inline

Definition at line 370 of file MyGridPhysics.Destruction.cs.

static float Sandbox.Game.Entities.Cube.MyGridPhysics.GetLargeShipMaxAngularVelocity ( )
inlinestatic

Definition at line 88 of file MyGridPhysics.cs.

override MyStringHash Sandbox.Game.Entities.Cube.MyGridPhysics.GetMaterialAt ( Vector3D  worldPos)
inlinevirtual

Reimplemented from VRage.Game.Components.MyPhysicsComponentBase.

Definition at line 1165 of file MyGridPhysics.cs.

override HkShape Sandbox.Game.Entities.Cube.MyGridPhysics.GetShape ( )
inlinevirtual

Gets shape of this physics body even if its welded with other

Returns

Reimplemented from Sandbox.Engine.Physics.MyPhysicsBody.

Definition at line 367 of file MyGridPhysics.cs.

static float Sandbox.Game.Entities.Cube.MyGridPhysics.GetShipMaxAngularVelocity ( MyCubeSize  size)
inlinestatic

Definition at line 83 of file MyGridPhysics.cs.

static float Sandbox.Game.Entities.Cube.MyGridPhysics.GetSmallShipMaxAngularVelocity ( )
inlinestatic

Definition at line 93 of file MyGridPhysics.cs.

static float Sandbox.Game.Entities.Cube.MyGridPhysics.LargeShipMaxLinearVelocity ( )
inlinestatic

Definition at line 73 of file MyGridPhysics.cs.

override void Sandbox.Game.Entities.Cube.MyGridPhysics.OnUnwelded ( MyPhysicsBody  other)
inlineprotectedvirtual

Reimplemented from Sandbox.Engine.Physics.MyPhysicsBody.

Definition at line 1576 of file MyGridPhysics.cs.

override void Sandbox.Game.Entities.Cube.MyGridPhysics.OnWelded ( MyPhysicsBody  other)
inlineprotectedvirtual

Reimplemented from Sandbox.Engine.Physics.MyPhysicsBody.

Definition at line 1556 of file MyGridPhysics.cs.

void Sandbox.Game.Entities.Cube.MyGridPhysics.PerformMeteoritDeformation ( ref HkBreakOffPointInfo  pt,
float  separatingVelocity 
)
inline

Definition at line 614 of file MyGridPhysics.cs.

static float Sandbox.Game.Entities.Cube.MyGridPhysics.ShipMaxLinearVelocity ( )
inlinestatic

Definition at line 67 of file MyGridPhysics.cs.

static float Sandbox.Game.Entities.Cube.MyGridPhysics.SmallShipMaxLinearVelocity ( )
inlinestatic

Definition at line 78 of file MyGridPhysics.cs.

void Sandbox.Game.Entities.Cube.MyGridPhysics.UpdateMass ( )
inline

Definition at line 1410 of file MyGridPhysics.cs.

void Sandbox.Game.Entities.Cube.MyGridPhysics.UpdateShape ( )
inline

Definition at line 1224 of file MyGridPhysics.cs.

Member Data Documentation

float Sandbox.Game.Entities.Cube.MyGridPhysics.DeformationRatio

Definition at line 173 of file MyGridPhysics.cs.

int Sandbox.Game.Entities.Cube.MyGridPhysics.DisableGravity = 0

Definition at line 100 of file MyGridPhysics.cs.

readonly float Sandbox.Game.Entities.Cube.MyGridPhysics.LargeShipMaxAngularVelocityLimit = MathHelper.ToRadians(18000)
static

Definition at line 61 of file MyGridPhysics.cs.

const float Sandbox.Game.Entities.Cube.MyGridPhysics.MAX_SHIP_SPEED = SPEED_OF_LIGHT_IN_VACUUM / 2.0f

Definition at line 65 of file MyGridPhysics.cs.

readonly float Sandbox.Game.Entities.Cube.MyGridPhysics.SmallShipMaxAngularVelocityLimit = MathHelper.ToRadians(36000)
static

Definition at line 62 of file MyGridPhysics.cs.

Property Documentation

HashSetReader<Vector3I> Sandbox.Game.Entities.Cube.MyGridPhysics.DirtyCubes
get

Definition at line 148 of file MyGridPhysics.cs.

override int Sandbox.Game.Entities.Cube.MyGridPhysics.HavokCollisionSystemID
getprotected set

Definition at line 187 of file MyGridPhysics.cs.

MyGridShape Sandbox.Game.Entities.Cube.MyGridPhysics.Shape
get

Definition at line 114 of file MyGridPhysics.cs.


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