Om  1.0.0
A universal framework for multimedia simulation
Public Member Functions | Public Attributes | List of all members
om::physics::base::MassState Class Reference

A class that represents the mass information of a 3D object. More...

#include <omPhysicsMassState.h>

Public Member Functions

 MassState ()
 Create a new mass state with the default initial mass (zero mass). More...
 
void applyForce (const SIMDFloat4 &forceVector)
 Apply the specified force vector to this object's center of mass. More...
 
void applyForce (const SIMDFloat4 &forceVector, const SIMDFloat4 &point)
 Apply the specified force vector at a point relative to the object's center of mass. More...
 
void setLocalInertia (const Matrix3f &localInertia)
 Set the local-space inertia tensor for the object relative to its center of mass. More...
 
SIMDFloat4 applyInvInertia (const SIMDFloat4 &v) const
 Apply the inverse world-space inertia tensor to the specified vector and return the result. More...
 

Public Attributes

SIMDFloat4 force
 The force acting on the object's center of mass in world space. More...
 
SIMDFloat4 torque
 The torque acting on the object around each rotation axis. More...
 
SIMDFloat4 mass
 The mass of this object. More...
 
SIMDFloat4 invMass
 The inverse mass of this object. More...
 
SIMDFloat4 invInertiaX
 The inverse world-space inertia tensor X-column of this object. More...
 
SIMDFloat4 invInertiaY
 The inverse world-space inertia tensor Y-column of this object. More...
 
SIMDFloat4 invInertiaZ
 The inverse world-space inertia tensor Z-column of this object. More...
 
SIMDFloat4 center
 The center of mass of this object in world space. More...
 
SIMDFloat4 localCenter
 The center of mass of this object in local coordinates. More...
 
SIMDFloat4 localMass
 The mass of this object in local space. More...
 
SIMDFloat4 invLocalInertiaX
 The local inverse inertia tensor X-column of this object. More...
 
SIMDFloat4 invLocalInertiaY
 The local inverse inertia tensor Y-column of this object. More...
 
SIMDFloat4 invLocalInertiaZ
 The local inverse inertia tensor Z-column of this object. More...
 

Detailed Description

A class that represents the mass information of a 3D object.

Constructor & Destructor Documentation

om::physics::base::MassState::MassState ( )
inline

Create a new mass state with the default initial mass (zero mass).

Member Function Documentation

void om::physics::base::MassState::applyForce ( const SIMDFloat4 &  forceVector)
inline

Apply the specified force vector to this object's center of mass.

void om::physics::base::MassState::applyForce ( const SIMDFloat4 &  forceVector,
const SIMDFloat4 &  point 
)
inline

Apply the specified force vector at a point relative to the object's center of mass.

void om::physics::base::MassState::setLocalInertia ( const Matrix3f &  localInertia)
inline

Set the local-space inertia tensor for the object relative to its center of mass.

SIMDFloat4 om::physics::base::MassState::applyInvInertia ( const SIMDFloat4 &  v) const
inline

Apply the inverse world-space inertia tensor to the specified vector and return the result.

Member Data Documentation

SIMDFloat4 om::physics::base::MassState::force

The force acting on the object's center of mass in world space.

SIMDFloat4 om::physics::base::MassState::torque

The torque acting on the object around each rotation axis.

SIMDFloat4 om::physics::base::MassState::mass

The mass of this object.

SIMDFloat4 om::physics::base::MassState::invMass

The inverse mass of this object.

SIMDFloat4 om::physics::base::MassState::invInertiaX

The inverse world-space inertia tensor X-column of this object.

SIMDFloat4 om::physics::base::MassState::invInertiaY

The inverse world-space inertia tensor Y-column of this object.

SIMDFloat4 om::physics::base::MassState::invInertiaZ

The inverse world-space inertia tensor Z-column of this object.

SIMDFloat4 om::physics::base::MassState::center

The center of mass of this object in world space.

SIMDFloat4 om::physics::base::MassState::localCenter

The center of mass of this object in local coordinates.

SIMDFloat4 om::physics::base::MassState::localMass

The mass of this object in local space.

SIMDFloat4 om::physics::base::MassState::invLocalInertiaX

The local inverse inertia tensor X-column of this object.

SIMDFloat4 om::physics::base::MassState::invLocalInertiaY

The local inverse inertia tensor Y-column of this object.

SIMDFloat4 om::physics::base::MassState::invLocalInertiaZ

The local inverse inertia tensor Z-column of this object.


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