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

A class that represents a 3D object with transformation, velocity, and mass. More...

#include <omPhysicsObjectState.h>

Public Member Functions

 ObjectState ()
 Create a new object state with the default initial state (motionless at the origin). 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...
 

Public Attributes

TransformStatetransform
 A pointer to the transform state for this object. More...
 
VelocityStatevelocity
 A pointer to the velocity state for this object. More...
 
MassStatemass
 A pointer to the mass state for this object. More...
 
context::PhysicsObjectID objectID
 The ID of this object within its context. More...
 
ObjectFlags flags
 An value containing boolean configuration flags for this object. More...
 

Detailed Description

A class that represents a 3D object with transformation, velocity, and mass.

Constructor & Destructor Documentation

om::physics::base::ObjectState::ObjectState ( )
inline

Create a new object state with the default initial state (motionless at the origin).

Member Function Documentation

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

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

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

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

Member Data Documentation

TransformState* om::physics::base::ObjectState::transform

A pointer to the transform state for this object.

VelocityState* om::physics::base::ObjectState::velocity

A pointer to the velocity state for this object.

MassState* om::physics::base::ObjectState::mass

A pointer to the mass state for this object.

context::PhysicsObjectID om::physics::base::ObjectState::objectID

The ID of this object within its context.

ObjectFlags om::physics::base::ObjectState::flags

An value containing boolean configuration flags for this object.


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