NTRT Simulator
 All Classes Files Functions Variables Typedefs Friends Pages
tgWorldBulletPhysicsImpl Class Reference

#include <tgWorldBulletPhysicsImpl.h>

Inheritance diagram for tgWorldBulletPhysicsImpl:
Collaboration diagram for tgWorldBulletPhysicsImpl:

Public Member Functions

 tgWorldBulletPhysicsImpl (const tgWorld::Config &config, tgBulletGround *ground)
 
 ~tgWorldBulletPhysicsImpl ()
 
virtual void step (double dt)
 
btSoftRigidDynamicsWorld & dynamicsWorld () const
 
void addCollisionShape (btCollisionShape *pShape)
 

Detailed Description

Concrete class derived from tgWorldImpl for Bullet Physics implementations.

Definition at line 46 of file tgWorldBulletPhysicsImpl.h.

Constructor & Destructor Documentation

tgWorldBulletPhysicsImpl::tgWorldBulletPhysicsImpl ( const tgWorld::Config config,
tgBulletGround ground 
)

The only constructor.

Parameters
[in]gravitythe gravitational acceleration in m/sec^2

Definition at line 63 of file tgWorldBulletPhysicsImpl.cpp.

Here is the call graph for this function:

tgWorldBulletPhysicsImpl::~tgWorldBulletPhysicsImpl ( )

Clean up Bullet Physics state.

Definition at line 85 of file tgWorldBulletPhysicsImpl.cpp.

Member Function Documentation

void tgWorldBulletPhysicsImpl::addCollisionShape ( btCollisionShape *  pShape)

Add a btCollisionShape the a collection for deletion upon destruction.

Parameters
[in]pShapea pointer to a btCollisionShape; do nothing if NULL

Definition at line 182 of file tgWorldBulletPhysicsImpl.cpp.

Here is the caller graph for this function:

btSoftRigidDynamicsWorld& tgWorldBulletPhysicsImpl::dynamicsWorld ( ) const
inline

Return a reference to the dynamics world.

Returns
a reference to the dynamics world

Definition at line 71 of file tgWorldBulletPhysicsImpl.h.

Here is the caller graph for this function:

void tgWorldBulletPhysicsImpl::step ( double  dt)
virtual

Advance the simulation.

Parameters
[in]dtthe number of seconds since the previous call; must be positive

Implements tgWorldImpl.

Definition at line 168 of file tgWorldBulletPhysicsImpl.cpp.


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