b3RigidBodyData.h 592 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef B3_RIGIDBODY_DATA_H
  2. #define B3_RIGIDBODY_DATA_H
  3. #include "Bullet3Common/shared/b3Float4.h"
  4. #include "Bullet3Common/shared/b3Quat.h"
  5. #include "Bullet3Common/shared/b3Mat3x3.h"
  6. typedef struct b3RigidBodyData b3RigidBodyData_t;
  7. struct b3RigidBodyData
  8. {
  9. b3Float4 m_pos;
  10. b3Quat m_quat;
  11. b3Float4 m_linVel;
  12. b3Float4 m_angVel;
  13. int m_collidableIdx;
  14. float m_invMass;
  15. float m_restituitionCoeff;
  16. float m_frictionCoeff;
  17. };
  18. typedef struct b3InertiaData b3InertiaData_t;
  19. struct b3InertiaData
  20. {
  21. b3Mat3x3 m_invInertiaWorld;
  22. b3Mat3x3 m_initInvInertia;
  23. };
  24. #endif //B3_RIGIDBODY_DATA_H