b3GpuConstraint4.h 424 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) b3GpuConstraint4 : public b3ContactConstraint4
  6. {
  7. B3_DECLARE_ALIGNED_ALLOCATOR();
  8. inline void setFrictionCoeff(float value) { m_linear[3] = value; }
  9. inline float getFrictionCoeff() const { return m_linear[3]; }
  10. };
  11. #endif //B3_CONSTRAINT4_h