A class that represents the mass information of a 3D object.
More...
#include <omPhysicsMassState.h>
|
| 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...
|
|
A class that represents the mass information of a 3D object.
om::physics::base::MassState::MassState |
( |
| ) |
|
|
inline |
Create a new mass state with the default initial mass (zero mass).
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.
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 |
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: