19 #ifndef BUILD_TEST_MODEL_H
20 #define BUILD_TEST_MODEL_H
28 #include "btBulletDynamicsCommon.h"
54 const double density = 0.9;
55 const double radius = 0.3;
65 pairs.addPair(nodes.
pair(0, 1),
"rod");
66 pairs.addPair(nodes.
pair(1, 2),
"rod");
67 pairs.addPair(nodes.
pair(2, 3),
"rod");
68 pairs.addPair(nodes.
pair(3, 0),
"rod");
70 m_rod =
new tgRodInfo(rodConfig, pairs[0]);
71 m_rod2 =
new tgRodInfo(rodConfig, pairs[1]);
77 std::vector<tgRigidInfo*> rigids;
78 rigids.push_back(m_rod);
79 rigids.push_back(m_rod2);
80 rigids.push_back(rod3);
85 autoCompound.execute();
93 std::vector<tgRigidInfo*>::iterator it;
94 for(it = rigids.begin(); it != rigids.end(); it++) {
95 (*it)->createModel(world);
160 void changeMuscle (
double length)
Definition of class tgRodInfo.
Definition of tgSubject class.
tgPair pair(int from, int to, std::string tags="")
virtual void step(double dt)
virtual void onVisit(const tgModelVisitor &r) const
virtual void setup(tgWorld &world)
Contains the definition of class tgModel.
Definition of class tgNodes.
Contains the definition of interface class tgModelVisitor.
virtual void step(double dt)
Contains the definition of class tgBasicActuator.
int addNode(const btVector3 &node)
Definition of class tgRigidAutoCompound.
void notifyStep(double dt)