Differential D1739 Diff 5899 extern/bullet2/src/BulletDynamics/ConstraintSolver/btGeneric6DofSpringConstraint.h
Changeset View
Changeset View
Standalone View
Standalone View
extern/bullet2/src/BulletDynamics/ConstraintSolver/btGeneric6DofSpringConstraint.h
| Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | BT_DECLARE_ALIGNED_ALLOCATOR(); | ||||
| btGeneric6DofSpringConstraint(btRigidBody& rbB, const btTransform& frameInB, bool useLinearReferenceFrameB); | btGeneric6DofSpringConstraint(btRigidBody& rbB, const btTransform& frameInB, bool useLinearReferenceFrameB); | ||||
| void enableSpring(int index, bool onOff); | void enableSpring(int index, bool onOff); | ||||
| void setStiffness(int index, btScalar stiffness); | void setStiffness(int index, btScalar stiffness); | ||||
| void setDamping(int index, btScalar damping); | void setDamping(int index, btScalar damping); | ||||
| void setEquilibriumPoint(); // set the current constraint position/orientation as an equilibrium point for all DOF | void setEquilibriumPoint(); // set the current constraint position/orientation as an equilibrium point for all DOF | ||||
| void setEquilibriumPoint(int index); // set the current constraint position/orientation as an equilibrium point for given DOF | void setEquilibriumPoint(int index); // set the current constraint position/orientation as an equilibrium point for given DOF | ||||
| void setEquilibriumPoint(int index, btScalar val); | void setEquilibriumPoint(int index, btScalar val); | ||||
| bool isSpringEnabled(int index) const | |||||
| { | |||||
| return m_springEnabled[index]; | |||||
| } | |||||
| btScalar getStiffness(int index) const | |||||
| { | |||||
| return m_springStiffness[index]; | |||||
| } | |||||
| btScalar getDamping(int index) const | |||||
| { | |||||
| return m_springDamping[index]; | |||||
| } | |||||
| btScalar getEquilibriumPoint(int index) const | |||||
| { | |||||
| return m_equilibriumPoint[index]; | |||||
| } | |||||
| virtual void setAxis( const btVector3& axis1, const btVector3& axis2); | virtual void setAxis( const btVector3& axis1, const btVector3& axis2); | ||||
| virtual void getInfo2 (btConstraintInfo2* info); | virtual void getInfo2 (btConstraintInfo2* info); | ||||
| virtual int calculateSerializeBufferSize() const; | virtual int calculateSerializeBufferSize() const; | ||||
| ///fills the dataBuffer and returns the struct name (and 0 on failure) | ///fills the dataBuffer and returns the struct name (and 0 on failure) | ||||
| virtual const char* serialize(void* dataBuffer, btSerializer* serializer) const; | virtual const char* serialize(void* dataBuffer, btSerializer* serializer) const; | ||||
| ▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||