38 #include "LinearMath/btVector3.h"
39 #include "LinearMath/btQuaternion.h"
48 int main(
int argc,
char** argv)
51 std::cout <<
"AppObstacleTest" << std::endl;
54 const double yaw = 0.0;
55 const double pitch = 0.0;
56 const double roll = 0.0;
62 btVector3 eulerAngles = btVector3(0.0, 0.0, 0.0);
63 btScalar friction = 0.5;
64 btScalar restitution = 0.0;
66 btVector3 size = btVector3(0.0, 0.1, 0.0);
67 btVector3 origin = btVector3(0.0, 0.0, 0.0);
71 double triangleSize = 5.0;
72 double waveHeight = 3.0;
75 size, origin, nx, ny, margin, triangleSize,
83 const double timestep_physics = 1.0/1000.0;
84 const double timestep_graphics = 1.f/60.f;
85 tgSimView view(world, timestep_physics, timestep_graphics);
90 btVector3 position(0.0, 0.0, 0.0);
102 for (
int i = 0; i < 3; i++)
111 simulation.
reset(hillGround);
116 simulation.
reset(ground);
void addObstacle(tgModel *pObstacle)
Contains the definition of class tgHillyGround.
Contains the definition of class tgStairs. A random field of blocks used to test tensegrities.
void addModel(tgModel *pModel)
Contains the definition of class tgSimulation.
Contains the definition of class tgModel.
Contains the definition of class tgSimViewGraphics.
Contains the definition of class tgBlockField. A random field of blocks used to test tensegrities...
Contains the definition of class tgWorld $Id$.
Contains the definition of class tgBoxGround.
int main(int argc, char **argv)
Rand seeding simular to the evolution and terrain classes.
Contains the definition of class tgEmptyGround.