40 #ifndef _physicsgeneric6dofspringconstraint_h
41 #define _physicsgeneric6dofspringconstraint_h
43 #include "Physics/generic6dofconstraint.h"
45 class btGeneric6DofSpringConstraint;
70 virtual btGeneric6DofSpringConstraint* Generic6dofSpring()
const;
110 virtual void SetSpringLinearStiffness(
const Vector3& Stiffies);
113 virtual void SetSpringLinearDamping(
const Vector3& Damps);
116 virtual void SetSpringLinearEnabled(
const Vector3& Enableness);
120 virtual Vector3 GetSpringLinearStiffness()
const;
123 virtual Vector3 GetSpringLinearDamping()
const;
126 virtual Vector3 GetSpringLinearEnabled()
const;
133 virtual void SetSpringAngularStiffness(
const Vector3& Stiffies);
136 virtual void SetSpringAngularDamping(
const Vector3& Damps);
139 virtual void SetSpringAngularEnabled(
const Vector3& Enableness);
143 virtual Vector3 GetSpringAngularStiffness()
const;
146 virtual Vector3 GetSpringAngularDamping()
const;
149 virtual Vector3 GetSpringAngularEnabled()
const;
157 virtual void SetSpringStiffness(
int Index,
Real Stiffness);
161 virtual void SetSpringDamping(
int Index,
Real Damping);
165 virtual void SetSpringEnabled(
int Index,
bool Enable);
170 virtual Real GetSpringStiffness(
int Index)
const;
174 virtual Real GetSpringDamping(
int Index)
const;
178 virtual bool GetSpringEnabled(
int Index)
const;
184 virtual void CalculateSpringEquilibriumPoint();
186 virtual void CalculateSpringEquilibriumPoint(
int Index);
189 virtual Vector3 GetCurrentSpringAngularEquilibriumPoints()
const;
191 virtual Vector3 GetCurrentSpringLinearEquilibriumPoints()
const;
193 virtual Real GetCurrentSpringEquilibriumPoint(
int Index)
const;
200 virtual void ProtoSerialize(
XML::Node& CurrentRoot)
const;
204 virtual void ProtoDeSerialize(
const XML::Node& OneNode);
207 static String SerializableName();