C4 Engine
C4 Engine API Documentation

class RigidBodyController

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

class RigidBodyController : public BodyController, public ListElement<RigidBodyController>, public SnapshotSender

Member Functions
RigidBodyController::GetRigidBodyFlags Returns the rigid body flags.
RigidBodyController::SetRigidBodyFlags Sets the rigid body flags.
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::GetSpinFrictionMultiplier Returns the spin friction multiplier for a rigid body.
RigidBodyController::SetSpinFrictionMultiplier Sets the spin friction multiplier for a rigid body.
RigidBodyController::GetRollingResistance Returns the rolling resistance for a rigid body.
RigidBodyController::SetRollingResistance Sets the rolling resistance for a rigid body.
RigidBodyController::GetSleepBoxSize Returns the sleep box size for a rigid body.
RigidBodyController::SetSleepBoxSize Sets the sleep box size for a rigid body.
 
RigidBodyController::GetCollisionKind Returns the collision kind for a rigid body.
RigidBodyController::SetCollisionKind Sets the collision kind 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::GetBodyVolume Returns the volume of a rigid body.
RigidBodyController::GetBodyMass Returns the mass of a rigid body.
RigidBodyController::GetBodyCenterOfMass Returns the body-space center of mass of a rigid body.
RigidBodyController::GetWorldCenterOfMass Returns the world-space 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::CalculateWorldPositionVelocity Returns the velocity of an arbitrary point due to the motion of a rigid body.
 
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.
RigidBodyController::PurgeContacts Purges all contacts for a ridig body.
 
RigidBodyController::HandlePhysicsSpaceExit Called when a rigid body exits the volume enclosed by the physics space.
Constructor

RigidBodyController();

RigidBodyController(ControllerType type);

Parameters
type The type of controller when the object being constructed is a subclass of RigidBodyController.
Description
The RigidBodyController class manages a rigid body in a physics simulation.
Base Classes
BodyController A RigidBodyController is a specific type of body controller.
ListElement<RigidBodyController> Used internally by the Physics Manager.
SnapshotSender Rigid bodies send periodic updates to client machines.
See Also

PhysicsController

Shape

Joint

Force

Field