SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
KartMotionState Class Reference

This is a very simple motion state implementation for bullet, which does not support any transformation from physics transform to graphics transform. More...

#include <kart_motion_state.hpp>

Inheritance diagram for KartMotionState:
Inheritance graph
[legend]

Public Member Functions

 KartMotionState (const btTransform &start_trans=btTransform::getIdentity())
 Constructor.
 
virtual void getWorldTransform (btTransform &center_of_mass) const
 Returns the current world transform.
 
virtual void setWorldTransform (const btTransform &new_trans)
 Synchronizes world transform from physics to user.
 

Private Attributes

btTransform m_center_of_mass
 

Detailed Description

This is a very simple motion state implementation for bullet, which does not support any transformation from physics transform to graphics transform.

Constructor & Destructor Documentation

◆ KartMotionState()

KartMotionState::KartMotionState ( const btTransform &  start_trans = btTransform::getIdentity())
inline

Constructor.

Parameters
start_transAn optional start transformation. Defaults to identity.

Member Function Documentation

◆ getWorldTransform()

virtual void KartMotionState::getWorldTransform ( btTransform &  center_of_mass) const
inlinevirtual

Returns the current world transform.

Parameters
center_of_massThe btTransform object that stores the current transformation.

◆ setWorldTransform()

virtual void KartMotionState::setWorldTransform ( const btTransform &  new_trans)
inlinevirtual

Synchronizes world transform from physics to user.

Bullet calls the update of worldtransform for active objects.

Parameters
new_transThe new transformation for the object.

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