31 #include "BulletCollision/CollisionShapes/btBoxShape.h"
32 #include "BulletDynamics/Dynamics/btRigidBody.h"
33 #include "LinearMath/btDefaultMotionState.h"
34 #include "LinearMath/btTransform.h"
39 tgPlaneGround::Config::Config( btVector3 normalVector,
43 m_normalVector(normalVector),
45 m_restitution(restitution),
69 btTransform groundTransform;
70 groundTransform.setIdentity();
71 groundTransform.setOrigin(m_config.
m_origin);
73 btQuaternion orientation;
74 orientation.setEuler(0,0,0);
78 groundTransform.setRotation(orientation);
82 btDefaultMotionState*
const pMotionState =
83 new btDefaultMotionState(groundTransform);
85 const btVector3 localInertia(0, 0, 0);
89 btRigidBody*
const pGroundBody=
new btRigidBody(0.0,pMotionState,pGroundShape,localInertia);
Contains the definition of class tgPlaneGround.
virtual btRigidBody * getGroundRigidBody() const