Click or drag to resize

PhysicsRigidBody Class

Represents a dynamic or kinematic rigid body.
Inheritance Hierarchy
SystemObject
  Demo3D.VisualsPhysicsBody
    Demo3D.VisualsPhysicsRigidBody

Namespace: Demo3D.Visuals
Assembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntax
C#
public class PhysicsRigidBody : PhysicsBody

The PhysicsRigidBody type exposes the following members.

Properties
 NameDescription
Public propertyAabb The axis-aligned bounding box in world space.
(Inherited from PhysicsBody)
Public propertyActive Whether the rigid body is active (not sleeping) in the world.
Public propertyAngularDamping The fraction of the rigid body's angular speed that is lost per second.
Public propertyAngularFactor The permitted world-space axes of rotation.
Public propertyAngularSleepingThreshold The angular speed below which the rigid body may sleep.
Public propertyAngularVelocity The angular velocity in world space.
Public propertyEnabled Whether the physics body is enabled in the physics world.
(Inherited from PhysicsBody)
Public propertyGeometry The physics collision geometry that belongs to the physics body.
(Inherited from PhysicsBody)
Public propertyGravityEnabled Whether gravity affects the rigid body.
Public propertyGroups A copy of the list of collision groups that are prescribed to the physics body.
(Inherited from PhysicsBody)
Public propertyHasJoints Does this rigid body have any joints?
Public propertyIsDisposed Whether the body has been disposed.
(Inherited from PhysicsBody)
Public propertyJoints The joints that affect the rigid body.
Public propertyKinematic Whether the body is kinematic.
Public propertyLinearDamping The fraction of the rigid body's linear speed that is lost per second.
Public propertyLinearFactor The permitted world-space axes of movement.
Public propertyLinearSleepingThreshold The linear speed below which the rigid body may sleep.
Public propertyLocalCenterOfMass The center of mass in local space.
Public propertyLocalCenterOfMassOffset The center of mass offset in local space.
Public propertyMass The mass.
Public propertyPosition The world-space position for the physics body.
(Inherited from PhysicsBody)
Public propertyRotation The world-space rotation matrix for the physics body.
(Inherited from PhysicsBody)
Public propertyTransform The world-space to local-space transformation matrix for the physics body.
(Inherited from PhysicsBody)
Public propertyVelocity The linear velocity in world space.
Top
Methods
 NameDescription
Public methodAddForce Applies the specified force to the rigid body's center of mass.
Obsolete
Public methodAddGroup Prescribes the specified collision group to the physics body.
(Inherited from PhysicsBody)
Public methodAddTorque Applies the specified angular force to the rigid body's center of mass.
Obsolete
Public methodApplyForce(Vector3) Applies the specified force to the rigid body's center of mass.
Public methodApplyForce(Vector3, Vector3) Applies the specified force to the point specified by the offset to the rigid body's center of mass.
Public methodApplyLocalForce(Vector3) Applies the specified force to the rigid body's center of mass.
Public methodApplyLocalForce(Vector3, Vector3) Applies the specified force to the point specified by the offset to the rigid body's center of mass.
Public methodApplyLocalTorque Applies the specified angular force to the rigid body's center of mass.
Public methodApplyTorque Applies the specified angular force to the rigid body's center of mass.
Public methodContainsGroup Whether the physics body has been prescribed the specified collision group.
(Inherited from PhysicsBody)
Public methodDispose
(Inherited from PhysicsBody)
Protected methodDispose(Boolean)
(Inherited from PhysicsBody)
Public methodRemoveGroup Unprescribes the specified collision group from the physics body.
(Inherited from PhysicsBody)
Top
Fields
 NameDescription
Public fieldVisual The parent visual.
(Inherited from PhysicsBody)
Top
See Also