Enums.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. enum MotionType: uint8_t {
  2. Static,
  3. Kinematic,
  4. Dynamic,
  5. };
  6. enum ShapeType: uint8_t {
  7. Convex,
  8. Compound,
  9. Decorated,
  10. Mesh,
  11. HeightField,
  12. SoftBody,
  13. // User defined shapes
  14. User1,
  15. User2,
  16. User3,
  17. User4,
  18. Plane,
  19. Empty,
  20. };
  21. enum ShapeSubType: uint8_t {
  22. // Convex shapes
  23. Sphere,
  24. Box,
  25. Triangle,
  26. Capsule,
  27. TaperedCapsule,
  28. Cylinder,
  29. ConvexHull,
  30. // Compound shapes
  31. StaticCompound,
  32. MutableCompound,
  33. // Decorated shapes
  34. RotatedTranslated,
  35. Scaled,
  36. OffsetCenterOfMass,
  37. // Other shapes
  38. Mesh,
  39. HeightField,
  40. SoftBody,
  41. // User defined shapes
  42. User1,
  43. User2,
  44. User3,
  45. User4,
  46. User5,
  47. User6,
  48. User7,
  49. User8,
  50. // User defined convex shapes
  51. UserConvex1,
  52. UserConvex2,
  53. UserConvex3,
  54. UserConvex4,
  55. UserConvex5,
  56. UserConvex6,
  57. UserConvex7,
  58. UserConvex8,
  59. // Other shapes
  60. Plane,
  61. TaperedCylinder,
  62. Empty,
  63. };
  64. enum PhysicsUpdateError: uint32_t {
  65. None = 0,
  66. ManifoldCacheFull = 1 << 0,
  67. BodyPairCacheFull = 1 << 1,
  68. ContactConstraintsFull = 1 << 2,
  69. };
  70. enum ConstraintType: uint32_t {
  71. Constraint,
  72. TwoBodyConstraint,
  73. };
  74. enum ConstraintSubType: uint32_t {
  75. Fixed,
  76. Point,
  77. Hinge,
  78. Slider,
  79. Distance,
  80. Cone,
  81. SwingTwist,
  82. SixDOF,
  83. Path,
  84. Vehicle,
  85. RackAndPinion,
  86. Gear,
  87. Pulley,
  88. // User defined constraint types start here
  89. User1,
  90. User2,
  91. User3,
  92. User4,
  93. };
  94. enum ConstraintSpace: uint32_t {
  95. LocalToBodyCOM = 0,
  96. WorldSpace = 1,
  97. };