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

#include <tgHillyGround.h>

Inheritance diagram for tgHillyGround:
Collaboration diagram for tgHillyGround:

Classes

struct  Config
 

Public Member Functions

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

Protected Attributes

btCollisionShape * pGroundShape
 

Detailed Description

A "hilly" ground, with randomized hills and valleys

Definition at line 44 of file tgHillyGround.h.

Constructor & Destructor Documentation

tgHillyGround::tgHillyGround ( )

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

Definition at line 75 of file tgHillyGround.cpp.

Here is the call graph for this function:

tgHillyGround::tgHillyGround ( const tgHillyGround::Config config)

Allows a user to specify their own config

Definition at line 82 of file tgHillyGround.cpp.

Here is the call graph for this function:

tgHillyGround::~tgHillyGround ( )
virtual

Clean up the implementation. Deletes m_pMesh

Definition at line 88 of file tgHillyGround.cpp.

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 * tgHillyGround::getGroundRigidBody ( ) const
virtual

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

Implements tgBulletGround.

Definition at line 95 of file tgHillyGround.cpp.

btCollisionShape * tgHillyGround::hillyCollisionShape ( )

Returns the collision shape that forms a hilly ground

Definition at line 125 of file tgHillyGround.cpp.

Here is the caller graph for this function:


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