Assembly: VRage.Game.dll

public abstract class MyPhysicsComponentBase: MyEntityComponentBase, IMyComponentBase, IMyEntityComponentBase

Fields

Member Description
ContactPointDelay Must be set before creating rigid body
EnabledChanged
Flags
IsPhantom Use something from Havok to detect this

Events

Member Description
static OnAfterAddedToContainer Inherited from MyEntityComponentBase
OnBodyActiveStateChanged OnBodyActiveStateChanged event - arg1 - Sender, arg2 - is active
BeforeRemovedFromContainer Inherited from IMyEntityComponentBase
BeforeRemovedFromContainer Inherited from MyEntityComponentBase

Properties

Member Description
AngularAcceleration
AngularDamping Gets or sets the angular damping.
AngularVelocity
AngularVelocityLocal
CanUpdateAccelerations
Center
CenterOfMassLocal
CenterOfMassWorld
ComponentTypeDebugString
Definition
Enabled Gets or sets a value indicating whether this is enabled.
Entity
Friction
Gravity
HasRigidBody
IsActive
IsInWorld
IsKinematic Gets or sets a value indicating whether this is kinematic.
IsMoving
IsStatic Gets or sets a value indicating whether this is static.
LinearAcceleration
LinearDamping Gets or sets the linear damping.
LinearVelocity Gets or sets the linear velocity.
LinearVelocityLocal
LinearVelocityUnsafe
Mass Gets or sets the mass.
MaterialType Gets or sets the type of the material.
PlayCollisionCueEnabled Gets or sets a value indicating whether [play collision cue enabled].
ReportAllContacts
RigidBody Obtain/set (default) rigid body of this physics object.
RigidBody2 Obtain/set secondary rigid body of this physics object (not used by default, it is used sometimes on grids for kinematic layer).
ShapeChangeInProgress
Speed Gets or sets the speed.
SupportNormal
AttachSyncToEntity Inherited from MyEntityComponentBase
ComponentTypeDebugString Inherited from IMyEntityComponentBase
ComponentTypeDebugString Name of the base component type for debug purposes (e.g.: "Position")

Inherited from MyEntityComponentBase
Container Inherited from IMyEntityComponentBase
Container Inherited from MyEntityComponentBase
ContainerBase Inherited from IMyComponentBase
ContainerBase This cannot be named Container to not conflict with the definition of Container in MyEntityComponentBase.

Inherited from MyComponentBase
Entity Inherited from IMyEntityComponentBase
Entity Inherited from MyEntityComponentBase
FailedOnSceneAdd Inherited from MyComponentBase
RemoveExistingComponentOnNewInsert Inherited from IMyComponentBase
RemoveExistingComponentOnNewInsert Inherited from MyComponentBase

Methods

Member Description
Activate() Activates this rigid body in physics.
AddForce(MyPhysicsForceType, Vector3?, Vector3D?, Vector3?, float?, bool, bool) Applies external force to the physics object.
ApplyImpulse(Vector3, Vector3D) Applies the impulse.
Clear() Clear all dynamic values of physics object.
ClearSpeed() Clears the speeds.
Close()
ClusterToWorld(Vector3) Converts local cluster position to global space.
CreateCharacterCollision(Vector3, float, float, float, float, float, float, MatrixD, float, ushort, bool, float, float, float, bool, float?)
Deactivate() Deactivates this rigid body in physics.
DebugDraw() Debug draw of this physics object.
Deserialize(MyObjectBuilder_ComponentBase)
ForceActivate()
GetMaterialAt(Vector3D)
GetVelocityAtPoint(Vector3D)
GetVelocityAtPointLocal(ref Vector3D, out Vector3)
GetWorldMatrix()
GetWorldMatrix(out MatrixD)
Init(MyComponentDefinitionBase)
IsSerialized()
OnAddedToContainer()
OnBeforeRemovedFromContainer()
OnWorldPositionChanged(object) Called when [world position changed].
Serialize(bool)
SetSpeeds(Vector3, Vector3) Set the current linear and angular velocities of this physics body.
UpdateAccelerations()
UpdateFromSystem()
WorldToCluster(Vector3D) Converts global space position to local cluster space.
Deserialize(MyObjectBuilder_ComponentBase) Inherited from IMyComponentBase
Deserialize(MyObjectBuilder_ComponentBase) Inherited from MyComponentBase
GetAs() Inherited from IMyComponentBase
GetAs() Inherited from MyComponentBase
Init(MyComponentDefinitionBase) Inherited from IMyComponentBase
Init(MyComponentDefinitionBase) Inherited from MyComponentBase
IsSerialized() Inherited from IMyComponentBase
IsSerialized() Tells the component container serializer whether this component should be saved

Inherited from MyComponentBase
OnAddedToContainer() Inherited from IMyComponentBase
OnAddedToContainer() Inherited from MyEntityComponentBase
OnAddedToContainer() Gets called after the container of this component changes

Inherited from MyComponentBase
OnAddedToScene() Inherited from IMyComponentBase
OnAddedToScene() CH: TOOD: Be careful! This does not get called if the component is added to a container that is in the scene already!

Inherited from MyComponentBase
OnBeforeRemovedFromContainer() Inherited from IMyComponentBase
OnBeforeRemovedFromContainer() Inherited from MyEntityComponentBase
OnBeforeRemovedFromContainer() Gets called before the removal of this component from a container

Inherited from MyComponentBase
OnRemovedFromScene() Inherited from IMyComponentBase
OnRemovedFromScene() CH: TOOD: Be careful! This does not get called if the component is removed from a container that is still in the scene!

Inherited from MyComponentBase
Serialize(bool) Inherited from IMyComponentBase
Serialize(bool) Inherited from MyComponentBase
SetContainer(IMyComponentContainer) Inherited from IMyComponentBase
SetContainer(IMyComponentContainer) 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.

Inherited from MyComponentBase

Inheritance: MyComponentBase ˃ MyEntityComponentBase

Implements: