b3GpuConstraint4.h 423 B

123456789101112131415161718
  1. #ifndef B3_CONSTRAINT4_h
  2. #define B3_CONSTRAINT4_h
  3. #include "Bullet3Common/b3Vector3.h"
  4. #include "Bullet3Dynamics/shared/b3ContactConstraint4.h"
  5. B3_ATTRIBUTE_ALIGNED16(struct)
  6. b3GpuConstraint4 : public b3ContactConstraint4
  7. {
  8. B3_DECLARE_ALIGNED_ALLOCATOR();
  9. inline void setFrictionCoeff(float value) { m_linear[3] = value; }
  10. inline float getFrictionCoeff() const { return m_linear[3]; }
  11. };
  12. #endif //B3_CONSTRAINT4_h