2 #ifndef B3_COLLIDABLE_H
3 #define B3_COLLIDABLE_H
5 #include "Bullet3Common/shared/b3Float4.h"
6 #include "Bullet3Common/shared/b3Quat.h"
10 SHAPE_HEIGHT_FIELD = 1,
12 SHAPE_CONVEX_HULL = 3,
14 SHAPE_CONCAVE_TRIMESH = 5,
15 SHAPE_COMPOUND_OF_CONVEX_HULLS = 6,
20 typedef struct b3Collidable b3Collidable_t;
30 int m_compoundBvhIndex;
40 typedef struct b3GpuChildShape b3GpuChildShape_t;
41 struct b3GpuChildShape
43 b3Float4 m_childPosition;
44 b3Quat m_childOrientation;
46 int m_shapeIndex; //used for SHAPE_COMPOUND_OF_CONVEX_HULLS
50 float m_radius; //used for childshape of SHAPE_COMPOUND_OF_SPHERES or SHAPE_COMPOUND_OF_CAPSULES
51 int m_numChildShapes; //used for compound shape
54 float m_height; //used for childshape of SHAPE_COMPOUND_OF_CAPSULES
55 int m_collidableShapeIndex;
60 struct b3CompoundOverlappingPair
65 int m_childShapeIndexA;
66 int m_childShapeIndexB;
69 #endif //B3_COLLIDABLE_H