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

#include <tgPlaneGround.h>

Inheritance diagram for tgPlaneGround:
Collaboration diagram for tgPlaneGround:

Classes

struct  Config
 

Public Member Functions

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

Constructor & Destructor Documentation

tgPlaneGround::tgPlaneGround ( )

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

Definition at line 52 of file tgPlaneGround.cpp.

tgPlaneGround::tgPlaneGround ( const tgPlaneGround::Config config)

Allows a user to specify their own config

Definition at line 60 of file tgPlaneGround.cpp.

virtual tgPlaneGround::~tgPlaneGround ( )
inlinevirtual

Clean up the implementation. The base class holds nothing.

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

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

Implements tgBulletGround.

Definition at line 67 of file tgPlaneGround.cpp.


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