NTRT Simulator  v1.1
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
tgBoxGround Class Reference

#include <tgBoxGround.h>

Inheritance diagram for tgBoxGround:
Collaboration diagram for tgBoxGround:

Classes

struct  Config
 

Public Member Functions

 tgBoxGround ()
 
 tgBoxGround (const tgBoxGround::Config &config)
 
virtual ~tgBoxGround ()
 
virtual btRigidBody * getGroundRigidBody () const
 
btCollisionShape *const getCollisionShape () const
 

Protected Attributes

btCollisionShape * pGroundShape
 

Detailed Description

Simplest ground implementation - a flat box. Can be put at an angle to allow for an incline

Definition at line 47 of file tgBoxGround.h.

Constructor & Destructor Documentation

tgBoxGround::tgBoxGround ( )

Default construction that uses the default values of config Sets up a collision object that is stored in the bulletGround object

Definition at line 54 of file tgBoxGround.cpp.

tgBoxGround::tgBoxGround ( const tgBoxGround::Config config)

Allows a user to specify their own config

Definition at line 63 of file tgBoxGround.cpp.

virtual tgBoxGround::~tgBoxGround ( )
inlinevirtual

Clean up the implementation. The base class holds nothing.

Definition at line 98 of file tgBoxGround.h.

Member Function Documentation

btCollisionShape *const tgBulletGround::getCollisionShape ( ) const
inherited

Returns a pointer to the collision shape for the list of collision objects in tgWorldBulletPhysicsImpl Collision shape must not be null

Definition at line 48 of file tgBulletGround.cpp.

btRigidBody * tgBoxGround::getGroundRigidBody ( ) const
virtual

Setup and return a return a rigid body based on the collision object

Implements tgBulletGround.

Definition at line 72 of file tgBoxGround.cpp.


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