35 #include "LinearMath/btVector3.h"
51 int main(
int argc,
char** argv)
53 std::cout <<
"AppSUPERball_InternalFriction" << std::endl;
93 const double yaw = 0.0;
94 const double pitch = 0.0;
95 const double roll = 0.0;
96 const btVector3 eulerAngles = btVector3(yaw, pitch, roll);
97 const double friction = 0.5;
98 const double restitution = 0.0;
99 const btVector3 size = btVector3(10000.0, 2, 10000.0);
100 const btVector3 origin = btVector3(0.0, 0.0, 0.0);
113 return new tgWorld(config, ground);
118 const double timestep_physics = 1.0 / 60.0 / 10.0;
119 const double timestep_graphics = 1.f /60.f;
125 const double timestep_physics = 1.0 / 60.0 / 10.0;
126 const double timestep_graphics = 1.f /60.f;
127 return new tgSimView(*world, timestep_physics, timestep_graphics);
134 for (
int i=0; i<nEpisodes; i++) {
135 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.