6 #include "VsMovableItem.h"
9 #include "VsMotorizedJoint.h"
10 #include "VsRigidBody.h"
12 #include "VsLinearHillMuscle.h"
13 #include "VsSimulator.h"
14 #include "VsDragger.h"
27 VsLinearHillMuscle::VsLinearHillMuscle()
32 VsLinearHillMuscle::~VsLinearHillMuscle()
41 {
Std_TraceMsg(0,
"Caught Error in desctructor of VsLinearHillMuscle\r\n",
"", -1,
false,
true);}
44 void VsLinearHillMuscle::CreateParts()
52 LinearHillMuscle::CreateJoints();
53 VsLine::CreateParts();
58 LinearHillMuscle::ResetSimulation();
59 VsLine::ResetSimulation();
64 LinearHillMuscle::AfterResetSimulation();
65 VsLine::AfterResetSimulation();
virtual void ResetSimulation()
Resets the simulation back to time 0.
virtual void StepSimulation()
Step the simulation for this object.
virtual void AfterResetSimulation()
Called after a simulation reset for some objects.
virtual void CreateJoints()
Allows the rigid body to create its joints using the chosen physics engine.
Classes for implementing the cm-labs vortex physics engine for AnimatLab.
void Std_TraceMsg(const int iLevel, std::string strMessage, std::string strSourceFile, int iSourceLine, bool bLogToFile, bool bPrintHeader)
Traces a message to the debugger window.
float m_fltTension
Tension of the muscle.
virtual void CalculateTension()
Calculates the tension.