35 #include "LinearMath/btVector3.h"
51 int main(
int argc,
char** argv)
53 std::cout <<
"AppSUPERball" << std::endl;
87 const double yaw = 0.0;
88 const double pitch = 0.0;
89 const double roll = 0.0;
90 const btVector3 eulerAngles = btVector3(yaw, pitch, roll);
91 const double friction = 0.5;
92 const double restitution = 0.0;
93 const btVector3 size = btVector3(10000.0, 2, 10000.0);
94 const btVector3 origin = btVector3(0.0, 0.0, 0.0);
107 return new tgWorld(config, ground);
112 const double timestep_physics = 1.0 / 60.0 / 10.0;
113 const double timestep_graphics = 1.f /60.f;
119 const double timestep_physics = 1.0 / 60.0 / 10.0;
120 const double timestep_graphics = 1.f /60.f;
121 return new tgSimView(*world, timestep_physics, timestep_graphics);
128 for (
int i=0; i<nEpisodes; i++) {
129 simulation->
run(nSteps);
int main(int argc, char **argv)
tgSimViewGraphics * createGraphicsView(tgWorld *world)
void addModel(tgModel *pModel)
tgSimView * createView(tgWorld *world)
Contains the definition of class tgSimulation.
Contains the definition of class tgModel.
Contains the definition of class tgSimViewGraphics.
Contains the definition of class tgWorld $Id$.
void simulate(tgSimulation *simulation)
Contains the definition of class tgBoxGround.