36 строки
761 B

  1. #ifndef B3_FIXED_CONSTRAINT_H
  2. #define B3_FIXED_CONSTRAINT_H
  3. #include "b3TypedConstraint.h"
  4. B3_ATTRIBUTE_ALIGNED16(class) b3FixedConstraint : public b3TypedConstraint
  5. {
  6. b3Vector3 m_pivotInA;
  7. b3Vector3 m_pivotInB;
  8. b3Quaternion m_relTargetAB;
  9. public:
  10. b3FixedConstraint(int rbA,int rbB, const b3Transform& frameInA,const b3Transform& frameInB);
  11. virtual ~b3FixedConstraint();
  12. virtual void getInfo1 (b3ConstraintInfo1* info,const b3RigidBodyData* bodies);
  13. virtual void getInfo2 (b3ConstraintInfo2* info, const b3RigidBodyData* bodies);
  14. virtual void setParam(int num, b3Scalar value, int axis = -1)
  15. {
  16. b3Assert(0);
  17. }
  18. virtual b3Scalar getParam(int num, int axis = -1) const
  19. {
  20. b3Assert(0);
  21. return 0.f;
  22. }
  23. };
  24. #endif //B3_FIXED_CONSTRAINT_H