C4 Engine Terathon Software C4 Engine API Documentation

• Physics Manager

API Links
Developer Links

class RigidBodyController

Defined in:  C4Physics.h
The RigidBodyController class manages a rigid body in a physics simulation.
Definition

class RigidBodyController : public Controller, public ListElement<RigidBodyController>, public Body

Member Functions
RigidBodyController::GetRigidBodyFlags Returns the rigid body flags.
RigidBodyController::SetRigidBodyFlags Sets the rigid body flags.
RigidBodyController::GetGravityMultiplier Returns the gravity multiplier for a rigid body.
RigidBodyController::SetGravityMultiplier Sets the gravity multiplier for a rigid body.
RigidBodyController::GetDragMultiplier Returns the drag multiplier for a rigid body.
RigidBodyController::SetDragMultiplier Sets the drag multiplier for a rigid body.
RigidBodyController::GetRestitutionCoefficient Returns the restitution coefficient for a rigid body.
RigidBodyController::SetRestitutionCoefficient Sets the restitution coefficient for a rigid body.
RigidBodyController::GetFrictionCoefficient Returns the friction coefficient for a rigid body.
RigidBodyController::SetFrictionCoefficient Sets the friction coefficient for a rigid body.
 
RigidBodyController::GetCollisionClass Returns the collision class for a rigid body.
RigidBodyController::SetCollisionClass Sets the collision class for a rigid body.
RigidBodyController::GetCollisionExclusionMask Returns the collision exclusion mask for a rigid body.
RigidBodyController::SetCollisionExclusionMask Sets the collision exclusion mask for a rigid body.
RigidBodyController::GetPhysicsController Returns the physics controller to which a rigid body belongs.
RigidBodyController::GetBodyVolume Returns the volume of a rigid body.
RigidBodyController::GetBodyMass Returns the mass of a rigid body.
RigidBodyController::GetCenterOfMass Returns the center of mass of a rigid body.
 
RigidBodyController::GetLinearVelocity Returns the current linear velocity of a rigid body.
RigidBodyController::SetLinearVelocity Sets the current linear velocity of a rigid body.
RigidBodyController::GetAngularVelocity Returns the current angular velocity of a rigid body.
RigidBodyController::SetAngularVelocity Sets the current angular velocity of a rigid body.
RigidBodyController::GetOriginalLinearVelocity Returns the linear velocity that a rigid body had at the beginning of the simulation step.
RigidBodyController::GetOriginalAngularVelocity Returns the angular velocity that a rigid body had at the beginning of the simulation step.
 
RigidBodyController::GetExternalForce Returns the external force acting on a rigid body.
RigidBodyController::SetExternalForce Sets the external force acting on a rigid body.
RigidBodyController::GetExternalTorque Returns the external torque acting on a rigid body.
RigidBodyController::SetExternalTorque Sets the external torque acting on a rigid body.
RigidBodyController::GetExternalLinearResistance Returns the external resistive force acting on the linear velocity of a rigid body.
RigidBodyController::SetExternalLinearResistance Sets the external resistive force acting on the linear velocity of a rigid body.
RigidBodyController::ApplyImpulse Applies an impulse to a rigid body.
RigidBodyController::SetRigidBodyTransform Sets the node transform for a rigid body.
RigidBodyController::SetRigidBodyMatrix3D Sets the node rotation matrix for a rigid body.
RigidBodyController::SetRigidBodyPosition Sets the node position for a rigid body.
 
RigidBodyController::CalculateSubmergedVolume Calculates the submerged volume of a rigid body.
 
RigidBodyController::ValidRigidBodyCollision Returns a boolean value indicating whether a collision with another rigid body would be valid.
RigidBodyController::ValidGeometryCollision Returns a boolean value indicating whether a collision with a geometry node would be valid.
RigidBodyController::HandleNewRigidBodyContact Called when a new contact is made with another rigid body.
RigidBodyController::HandleNewGeometryContact Called when a new contact is made with a geometry node.
Constructor

RigidBodyController();

Description
The RigidBodyController class manages a rigid body in a physics simulation.
Base Classes
Controller A RigidBodyController is a specific type of controller.
ListElement<RigidBodyController> Used internally by the Physics Manager.
Body Used internally by the Physics Manager.
See Also

PhysicsController

Shape

Joint

Force

Field