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

#include <tgCraterGround.h>

Inheritance diagram for tgCraterGround:
Collaboration diagram for tgCraterGround:


struct  Config

Public Member Functions

 tgCraterGround ()
 tgCraterGround (const tgCraterGround::Config &config)
virtual ~tgCraterGround ()
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 40 of file tgCraterGround.h.

Constructor & Destructor Documentation

tgCraterGround::tgCraterGround ( )

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 tgCraterGround.cpp.

tgCraterGround::tgCraterGround ( const tgCraterGround::Config config)

Allows a user to specify their own config

Definition at line 63 of file tgCraterGround.cpp.

virtual tgCraterGround::~tgCraterGround ( )

Clean up the implementation. The base class holds nothing.

Definition at line 91 of file tgCraterGround.h.

Member Function Documentation

btCollisionShape *const tgBulletGround::getCollisionShape ( ) const

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

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

Implements tgBulletGround.

Definition at line 72 of file tgCraterGround.cpp.

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