26 #include "PrismModel.h"
36 #include "LinearMath/btVector3.h"
57 double triangle_length;
58 double triangle_height;
94 s.
addNode(-edge / 2.0, height, 0);
96 s.
addNode( edge / 2.0, height, 0);
137 addNodes(s, c.triangle_length, c.triangle_height, c.prism_height);
146 s.move(btVector3(0, 10, 0));
150 spec.addBuilder(
"rod",
new tgRodInfo(rodConfig));
161 allActuators = tgCast::filter<tgModel, tgSpringCableActuator> (
getDescendants());
175 throw std::invalid_argument(
"dt is not positive");
virtual void step(double dt)
virtual void setup(tgWorld &world)
Definition of class tgRodInfo.
virtual void step(double dt)
Definition of class tgBasicActuatorInfo.
virtual void onVisit(const tgModelVisitor &r) const
void addPair(int fromNodeIdx, int toNodeIdx, std::string tags="")
Contains the definition of class tgBasicActuator.
virtual void onVisit(tgModelVisitor &r)
Definition of class tgStructure.
Definition of class tgStructureInfo.
Contains the definition of class tgRod.
Definition of class tgBuildSpec.
virtual void setup(tgWorld &world)
const std::vector< tgSpringCableActuator * > & getAllActuators() const
void notifyStep(double dt)
std::vector< tgModel * > getDescendants() const
void buildInto(tgModel &model, tgWorld &world)
void addNode(double x, double y, double z, std::string tags="")