NTRT Simulator  v1.1
 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 40 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 74 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 81 of file tgHillyGround.cpp.

Here is the call graph for this function:

virtual tgHillyGround::~tgHillyGround ( )
inlinevirtual

Clean up the implementation. The base class holds nothing.

Definition at line 106 of file tgHillyGround.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 * tgHillyGround::getGroundRigidBody ( ) const
virtual

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

Implements tgBulletGround.

Definition at line 87 of file tgHillyGround.cpp.

btCollisionShape * tgHillyGround::hillyCollisionShape ( )

Returns the collision shape that forms a hilly ground

Definition at line 116 of file tgHillyGround.cpp.

Here is the caller graph for this function:


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