Public Member Functions | Public Attributes

TrbState Class Reference

#include <TrbStateVec.h>

List of all members.

Public Member Functions

 TrbState ()
 TrbState (const uint8_t m, const vmVector3 &x, const vmQuat &q, const vmVector3 &v, const vmVector3 &omega)
void setZero ()
void setIdentity ()
bool isDeleted () const
uint16_t getRigidBodyId () const
void setRigidBodyId (uint16_t i)
uint32_t getContactFilterSelf () const
void setContactFilterSelf (uint32_t filter)
uint32_t getContactFilterTarget () const
void setContactFilterTarget (uint32_t filter)
float getLinearDamping () const
float getAngularDamping () const
void setLinearDamping (float damping)
void setAngularDamping (float damping)
uint8_t getMotionType () const
void setMotionType (uint8_t t)
uint8_t getMotionMask () const
bool isAsleep () const
bool isAwake () const
void wakeup ()
void sleep ()
uint8_t getUseSleep () const
void setUseSleep (uint8_t b)
uint8_t getUseCcd () const
void setUseCcd (uint8_t b)
uint8_t getUseContactCallback () const
void setUseContactCallback (uint8_t b)
uint8_t getUseSleepCallback () const
void setUseSleepCallback (uint8_t b)
void incrementSleepCount ()
void resetSleepCount ()
uint16_t getSleepCount () const
vmVector3 getPosition () const
vmQuat getOrientation () const
vmVector3 getLinearVelocity () const
vmVector3 getAngularVelocity () const
vmVector3 getDeltaLinearVelocity () const
vmVector3 getDeltaAngularVelocity () const
void setPosition (const vmVector3 &pos)
void setLinearVelocity (const vmVector3 &vel)
void setAngularVelocity (const vmVector3 &vel)
void setDeltaLinearVelocity (const vmVector3 &vel)
void setDeltaAngularVelocity (const vmVector3 &vel)
void setOrientation (const vmQuat &rot)
void setAuxils (const vmVector3 &centerLocal, const vmVector3 &halfLocal)
void setAuxilsCcd (const vmVector3 &centerLocal, const vmVector3 &halfLocal, float timeStep)
void reset ()

Public Attributes

uint16_t mSleepCount
uint8_t mMotionType
uint8_t deleted: 1
uint8_t mSleeping: 1
uint8_t useSleep: 1
uint8_t useCcd: 1
uint8_t useContactCallback: 1
uint8_t useSleepCallback: 1
uint16_t trbBodyIdx
uint32_t contactFilterSelf
uint32_t contactFilterTarget
float center [3]
float half [3]
float linearDamping
float angularDamping
float deltaLinearVelocity [3]
float deltaAngularVelocity [3]
float fX [3]
float fQ [4]
float fV [3]
float fOmega [3]

Detailed Description

Definition at line 79 of file TrbStateVec.h.


Constructor & Destructor Documentation

TrbState::TrbState (  )  [inline]

Definition at line 84 of file TrbStateVec.h.

TrbState::TrbState ( const uint8_t  m,
const vmVector3 x,
const vmQuat q,
const vmVector3 v,
const vmVector3 omega 
) [inline]

Definition at line 198 of file TrbStateVec.h.


Member Function Documentation

float TrbState::getAngularDamping (  )  const [inline]

Definition at line 145 of file TrbStateVec.h.

vmVector3 TrbState::getAngularVelocity (  )  const [inline]

Definition at line 181 of file TrbStateVec.h.

uint32_t TrbState::getContactFilterSelf (  )  const [inline]

Definition at line 138 of file TrbStateVec.h.

uint32_t TrbState::getContactFilterTarget (  )  const [inline]

Definition at line 141 of file TrbStateVec.h.

vmVector3 TrbState::getDeltaAngularVelocity (  )  const [inline]

Definition at line 183 of file TrbStateVec.h.

vmVector3 TrbState::getDeltaLinearVelocity (  )  const [inline]

Definition at line 182 of file TrbStateVec.h.

float TrbState::getLinearDamping (  )  const [inline]

Definition at line 144 of file TrbStateVec.h.

vmVector3 TrbState::getLinearVelocity (  )  const [inline]

Definition at line 180 of file TrbStateVec.h.

uint8_t TrbState::getMotionMask (  )  const [inline]

Definition at line 154 of file TrbStateVec.h.

uint8_t TrbState::getMotionType (  )  const [inline]

Definition at line 151 of file TrbStateVec.h.

vmQuat TrbState::getOrientation (  )  const [inline]

Definition at line 179 of file TrbStateVec.h.

vmVector3 TrbState::getPosition (  )  const [inline]

Definition at line 178 of file TrbStateVec.h.

uint16_t TrbState::getRigidBodyId (  )  const [inline]

Definition at line 134 of file TrbStateVec.h.

uint16_t TrbState::getSleepCount (  )  const [inline]

Definition at line 176 of file TrbStateVec.h.

uint8_t TrbState::getUseCcd (  )  const [inline]

Definition at line 165 of file TrbStateVec.h.

uint8_t TrbState::getUseContactCallback (  )  const [inline]

Definition at line 168 of file TrbStateVec.h.

uint8_t TrbState::getUseSleep (  )  const [inline]

Definition at line 162 of file TrbStateVec.h.

uint8_t TrbState::getUseSleepCallback (  )  const [inline]

Definition at line 171 of file TrbStateVec.h.

void TrbState::incrementSleepCount (  )  [inline]

Definition at line 174 of file TrbStateVec.h.

bool TrbState::isAsleep (  )  const [inline]

Definition at line 156 of file TrbStateVec.h.

bool TrbState::isAwake (  )  const [inline]

Definition at line 157 of file TrbStateVec.h.

bool TrbState::isDeleted (  )  const [inline]

Definition at line 132 of file TrbStateVec.h.

void TrbState::reset (  )  [inline]

Definition at line 301 of file TrbStateVec.h.

void TrbState::resetSleepCount (  )  [inline]

Definition at line 175 of file TrbStateVec.h.

void TrbState::setAngularDamping ( float  damping  )  [inline]

Definition at line 148 of file TrbStateVec.h.

void TrbState::setAngularVelocity ( const vmVector3 vel  )  [inline]

Definition at line 187 of file TrbStateVec.h.

void TrbState::setAuxils ( const vmVector3 centerLocal,
const vmVector3 halfLocal 
) [inline]

Definition at line 264 of file TrbStateVec.h.

void TrbState::setAuxilsCcd ( const vmVector3 centerLocal,
const vmVector3 halfLocal,
float  timeStep 
) [inline]

Definition at line 277 of file TrbStateVec.h.

void TrbState::setContactFilterSelf ( uint32_t  filter  )  [inline]

Definition at line 139 of file TrbStateVec.h.

void TrbState::setContactFilterTarget ( uint32_t  filter  )  [inline]

Definition at line 142 of file TrbStateVec.h.

void TrbState::setDeltaAngularVelocity ( const vmVector3 vel  )  [inline]

Definition at line 189 of file TrbStateVec.h.

void TrbState::setDeltaLinearVelocity ( const vmVector3 vel  )  [inline]

Definition at line 188 of file TrbStateVec.h.

void TrbState::setIdentity (  )  [inline]

Definition at line 228 of file TrbStateVec.h.

void TrbState::setLinearDamping ( float  damping  )  [inline]

Definition at line 147 of file TrbStateVec.h.

void TrbState::setLinearVelocity ( const vmVector3 vel  )  [inline]

Definition at line 186 of file TrbStateVec.h.

void TrbState::setMotionType ( uint8_t  t  )  [inline]

Definition at line 152 of file TrbStateVec.h.

void TrbState::setOrientation ( const vmQuat rot  )  [inline]

Definition at line 190 of file TrbStateVec.h.

void TrbState::setPosition ( const vmVector3 pos  )  [inline]

Definition at line 185 of file TrbStateVec.h.

void TrbState::setRigidBodyId ( uint16_t  i  )  [inline]

Definition at line 135 of file TrbStateVec.h.

void TrbState::setUseCcd ( uint8_t  b  )  [inline]

Definition at line 166 of file TrbStateVec.h.

void TrbState::setUseContactCallback ( uint8_t  b  )  [inline]

Definition at line 169 of file TrbStateVec.h.

void TrbState::setUseSleep ( uint8_t  b  )  [inline]

Definition at line 163 of file TrbStateVec.h.

void TrbState::setUseSleepCallback ( uint8_t  b  )  [inline]

Definition at line 172 of file TrbStateVec.h.

void TrbState::setZero (  )  [inline]

Definition at line 246 of file TrbStateVec.h.

void TrbState::sleep (  )  [inline]

Definition at line 160 of file TrbStateVec.h.

void TrbState::wakeup (  )  [inline]

Definition at line 159 of file TrbStateVec.h.


Member Data Documentation

Definition at line 119 of file TrbStateVec.h.

float TrbState::center[3]

Definition at line 115 of file TrbStateVec.h.

Definition at line 112 of file TrbStateVec.h.

Definition at line 113 of file TrbStateVec.h.

Definition at line 104 of file TrbStateVec.h.

Definition at line 122 of file TrbStateVec.h.

Definition at line 121 of file TrbStateVec.h.

float TrbState::fOmega[3]

Definition at line 127 of file TrbStateVec.h.

float TrbState::fQ[4]

Definition at line 125 of file TrbStateVec.h.

float TrbState::fV[3]

Definition at line 126 of file TrbStateVec.h.

float TrbState::fX[3]

Definition at line 124 of file TrbStateVec.h.

float TrbState::half[3]

Definition at line 116 of file TrbStateVec.h.

Definition at line 118 of file TrbStateVec.h.

Definition at line 103 of file TrbStateVec.h.

Definition at line 102 of file TrbStateVec.h.

Definition at line 105 of file TrbStateVec.h.

Definition at line 111 of file TrbStateVec.h.

Definition at line 107 of file TrbStateVec.h.

Definition at line 108 of file TrbStateVec.h.

Definition at line 106 of file TrbStateVec.h.

Definition at line 109 of file TrbStateVec.h.


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