68 float m_fltStiffnessTension;
71 float m_fltDampingTension;
79 virtual void CalculateTension();
87 virtual void ClearVelocityAverage();
95 virtual bool InitEnabled();
105 virtual float NaturalLength();
116 virtual void NaturalLength(
float fltVal,
bool bUseScaling =
true);
126 virtual float Stiffness();
137 virtual void Stiffness(
float fltVal,
bool bUseScaling =
true);
147 virtual float Damping();
158 virtual void Damping(
float fltVal,
bool bUseScaling =
true);
160 virtual float Displacement();
161 virtual float Tension();
162 virtual float Energy();
163 virtual float Velocity();
165 virtual void ResetSimulation();
166 virtual void CreateParts();
167 virtual float *GetDataPointer(
const std::string &strDataType);
168 virtual bool SetData(
const std::string &strDataType,
const std::string &strValue,
bool bThrowError =
true);
169 virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
170 virtual void AddExternalNodeInput(
int iTargetDataType,
float fltInput);
171 virtual void Load(CStdXml &oXml);
float m_fltStiffness
The stiffness of the spring.
float m_fltNaturalLength
The natural length of the spring.
Root namespace for the base simulation library for AnimatLab.
float m_fltDamping
The damping of the spring.
float m_fltVelocity
The velocity of the spring length change.
float m_fltAvgVelocity
The rolling average velocity over the last 5 steps.
bool m_bInitEnabled
Keeps track of the initial state of the enabled flag.
float m_fltDampingNotScaled
The damping of the spring.
float m_fltEnergy
The current energy contained in the spring.
float m_fltStiffnessNotScaled
The unscaled stiffness. This is used to calcuate the energy.
float m_fltDisplacement
The current displacement of the spring from its natural length.
Base class for Line body part types.
float m_fltNaturalLengthNotScaled
The unscaled natural length. This is used to calcuate the tension and displacement.
CStdCircularArray< float > m_aryVelocityAvg
circular array for calculating the rolling average of the velocity.
float m_fltTension
The current force being applied by the spring.