36 #include "LinearMath/btVector3.h"
37 #include "LinearMath/btQuaternion.h"
47 int main(
int argc,
char** argv)
51 btVector3 startPos(0.0, 0.0, 0.0);
52 btVector3 endPos (10.0, 0.0, 0.0);
55 btQuaternion startRot( 0, sqrt(2)/2.0, 0, sqrt(2)/2.0);
56 btQuaternion endRot = startRot;
58 btVector3 startPos(0.0, 0.0, 0.0);
59 btVector3 endPos (0.0, 0.0, 10.0);
62 btQuaternion startRot( 0, 0, 0, 1);
63 btQuaternion endRot = startRot;
66 const std::size_t resolution = 10;
67 const double radius = 0.01;
68 const double density = 1300;
69 const double youngMod = 0.5;
70 const double shearMod = 0.5;
71 const double stretchMod = 20.0;
72 const double springConst = 100.0 * pow(10, 3);
73 const double gammaT = 10.0 * pow(10, -6);
74 const double gammaR = 1.0 * pow(10, -6);
76 stretchMod, springConst, gammaT, gammaR);
78 CordeModel testString(startPos, endPos, startRot, endRot, config);
82 for (
int i = 0; i < 10000; i++)
87 #ifdef BT_USE_DOUBLE_PRECISION
88 std::cout <<
"Double precision" << std::endl;
90 std::cout <<
"Single Precision" << std::endl;
int main(int argc, char **argv)
Defines structure for the Corde softbody String Model.
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$.
Contains the definition of class tgUtil and overloaded operator<<() free functions.