19 #ifndef CORE_TERRAIN_TG_HILLY_GROUND_H
20 #define CORE_TERRAIN_TG_HILLY_GROUND_H
31 #include "LinearMath/btScalar.h"
32 #include "LinearMath/btVector3.h"
39 class btTriangleIndexVertexArray;
51 Config(btVector3 eulerAngles = btVector3(0.0, 0.0, 0.0),
52 double friction = 0.5,
53 double restitution = 0.0,
54 btVector3 size = btVector3(500.0, 1.5, 500.0),
55 btVector3 origin = btVector3(0.0, 0.0, 0.0),
59 double triangleSize = 5.0,
60 double waveHeight = 5.0,
131 btTriangleIndexVertexArray* createMesh(std::size_t triangleCount,
int indices[], std::size_t vertexCount, btVector3 vertices[]);
136 btCollisionShape *createShape(btTriangleIndexVertexArray * pMesh);
141 void setVertices(btVector3 vertices[]);
146 void setIndices(
int indices[]);
149 btTriangleIndexVertexArray* m_pMesh;
150 btVector3 * m_vertices;
155 #endif // TG_HILLY_GROUND_H
Contains the definition of class tgBulletGround.
virtual btRigidBody * getGroundRigidBody() const
btCollisionShape * hillyCollisionShape()