Differential D1739 Diff 5899 extern/bullet2/src/BulletDynamics/ConstraintSolver/btHinge2Constraint.h
Changeset View
Changeset View
Standalone View
Standalone View
extern/bullet2/src/BulletDynamics/ConstraintSolver/btHinge2Constraint.h
| Show All 14 Lines | |||||
| #ifndef BT_HINGE2_CONSTRAINT_H | #ifndef BT_HINGE2_CONSTRAINT_H | ||||
| #define BT_HINGE2_CONSTRAINT_H | #define BT_HINGE2_CONSTRAINT_H | ||||
| #include "LinearMath/btVector3.h" | #include "LinearMath/btVector3.h" | ||||
| #include "btTypedConstraint.h" | #include "btTypedConstraint.h" | ||||
| #include "btGeneric6DofSpringConstraint.h" | #include "btGeneric6DofSpring2Constraint.h" | ||||
| // Constraint similar to ODE Hinge2 Joint | // Constraint similar to ODE Hinge2 Joint | ||||
| // has 3 degrees of frredom: | // has 3 degrees of frredom: | ||||
| // 2 rotational degrees of freedom, similar to Euler rotations around Z (axis 1) and X (axis 2) | // 2 rotational degrees of freedom, similar to Euler rotations around Z (axis 1) and X (axis 2) | ||||
| // 1 translational (along axis Z) with suspension spring | // 1 translational (along axis Z) with suspension spring | ||||
| ATTRIBUTE_ALIGNED16(class) btHinge2Constraint : public btGeneric6DofSpringConstraint | ATTRIBUTE_ALIGNED16(class) btHinge2Constraint : public btGeneric6DofSpring2Constraint | ||||
| { | { | ||||
| protected: | protected: | ||||
| btVector3 m_anchor; | btVector3 m_anchor; | ||||
| btVector3 m_axis1; | btVector3 m_axis1; | ||||
| btVector3 m_axis2; | btVector3 m_axis2; | ||||
| public: | public: | ||||
| BT_DECLARE_ALIGNED_ALLOCATOR(); | BT_DECLARE_ALIGNED_ALLOCATOR(); | ||||
| Show All 20 Lines | |||||