NTRT Simulator  Version: Master
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
tgBulletUtil Class Reference

#include <tgBulletUtil.h>

Static Public Member Functions

static btRigidBody * createRigidBody (btDynamicsWorld *dynamicsWorld, float mass, const btTransform &startTransform, btCollisionShape *shape)
 
static btDynamicsWorld & worldToDynamicsWorld (const tgWorld &world)
 

Detailed Description

Utility class for dealing with Bullet Physics

Definition at line 39 of file tgBulletUtil.h.

Member Function Documentation

btDynamicsWorld & tgBulletUtil::worldToDynamicsWorld ( const tgWorld world)
static

Assuming that world has a tgWorldBulletPhysicsImpl, return its dynamics world.

Parameters
[in,out]worlda tgWorld
Returns
the world's implementation's btSoftRigidDynamicsView
Todo:
consider implications of casting to include Corde objects
Todo:
Use typeinfo to verify that this is correct.

Definition at line 79 of file tgBulletUtil.cpp.

Here is the call graph for this function:


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