Image Component Library (ICL)
Public Member Functions | Private Attributes | List of all members
icl::physics::MotionState Class Reference

This class is a MotionState for updating SceneObjects to match the PhysicsObject state. More...

#include <MotionState.h>

Inheritance diagram for icl::physics::MotionState:
icl::utils::Uncopyable

Public Member Functions

 MotionState (const btTransform &initialpos, RigidObject *obj)
 Constructor that takes an initial Position an the corresponding RigidObject. More...
 
virtual ~MotionState ()
 
virtual void getWorldTransform (btTransform &worldTrans) const
 
virtual void setWorldTransform (const btTransform &worldTrans)
 

Private Attributes

RigidObjectscn_obj
 RigidObject this MotionState belongs to. More...
 
btTransform trans
 Internal transform of the Object. More...
 

Additional Inherited Members

- Protected Member Functions inherited from icl::utils::Uncopyable
 Uncopyable ()
 Empty base constructor. More...
 

Detailed Description

This class is a MotionState for updating SceneObjects to match the PhysicsObject state.

Constructor & Destructor Documentation

◆ MotionState()

icl::physics::MotionState::MotionState ( const btTransform &  initialpos,
RigidObject obj 
)
inline

Constructor that takes an initial Position an the corresponding RigidObject.

◆ ~MotionState()

virtual icl::physics::MotionState::~MotionState ( )
inlinevirtual

Member Function Documentation

◆ getWorldTransform()

virtual void icl::physics::MotionState::getWorldTransform ( btTransform &  worldTrans) const
inlinevirtual

◆ setWorldTransform()

virtual void icl::physics::MotionState::setWorldTransform ( const btTransform &  worldTrans)
inlinevirtual

Member Data Documentation

◆ scn_obj

RigidObject* icl::physics::MotionState::scn_obj
private

RigidObject this MotionState belongs to.

◆ trans

btTransform icl::physics::MotionState::trans
private

Internal transform of the Object.


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