Bullet Collision Detection & Physics Library
Classes | Macros | Enumerations | Variables
btRigidBody.h File Reference
#include "LinearMath/btAlignedObjectArray.h"
#include "LinearMath/btTransform.h"
#include "BulletCollision/BroadphaseCollision/btBroadphaseProxy.h"
#include "BulletCollision/CollisionDispatch/btCollisionObject.h"
Include dependency graph for btRigidBody.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  btRigidBody
 The btRigidBody is the main class for rigid body objects. More...
 
struct  btRigidBody::btRigidBodyConstructionInfo
 The btRigidBodyConstructionInfo structure provides information to create a rigid body. More...
 
struct  btRigidBodyFloatData
 do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64 More...
 
struct  btRigidBodyDoubleData
 do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64 More...
 

Macros

#define btRigidBodyData   btRigidBodyFloatData
 
#define btRigidBodyDataName   "btRigidBodyFloatData"
 

Enumerations

enum  btRigidBodyFlags {
  BT_DISABLE_WORLD_GRAVITY = 1,
  BT_ENABLE_GYROPSCOPIC_FORCE = 2
}
 

Variables

btScalar gDeactivationTime
 
bool gDisableDeactivation
 

Macro Definition Documentation

#define btRigidBodyData   btRigidBodyFloatData

Definition at line 36 of file btRigidBody.h.

#define btRigidBodyDataName   "btRigidBodyFloatData"

Definition at line 37 of file btRigidBody.h.

Enumeration Type Documentation

Enumerator
BT_DISABLE_WORLD_GRAVITY 
BT_ENABLE_GYROPSCOPIC_FORCE 

The BT_ENABLE_GYROPSCOPIC_FORCE can easily introduce instability So generally it is best to not enable it.

If really needed, run at a high frequency like 1000 Hertz: ///See Demos/GyroscopicDemo for an example use

Definition at line 41 of file btRigidBody.h.

Variable Documentation

btScalar gDeactivationTime

Definition at line 25 of file btRigidBody.cpp.

bool gDisableDeactivation

Definition at line 26 of file btRigidBody.cpp.