| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #ifndef B3_COLLIDABLE_H
- #define B3_COLLIDABLE_H
- #include "Bullet3Common/shared/b3Float4.h"
- #include "Bullet3Common/shared/b3Quat.h"
- enum b3ShapeTypes
- {
- SHAPE_HEIGHT_FIELD=1,
- SHAPE_CONVEX_HULL=3,
- SHAPE_PLANE=4,
- SHAPE_CONCAVE_TRIMESH=5,
- SHAPE_COMPOUND_OF_CONVEX_HULLS=6,
- SHAPE_SPHERE=7,
- MAX_NUM_SHAPE_TYPES,
- };
- typedef struct b3Collidable b3Collidable_t;
- struct b3Collidable
- {
- union {
- int m_numChildShapes;
- int m_bvhIndex;
- };
- union
- {
- float m_radius;
- int m_compoundBvhIndex;
- };
- int m_shapeType;
- int m_shapeIndex;
- };
- typedef struct b3GpuChildShape b3GpuChildShape_t;
- struct b3GpuChildShape
- {
- b3Float4 m_childPosition;
- b3Quat m_childOrientation;
- int m_shapeIndex;
- int m_unused0;
- int m_unused1;
- int m_unused2;
- };
- struct b3CompoundOverlappingPair
- {
- int m_bodyIndexA;
- int m_bodyIndexB;
- // int m_pairType;
- int m_childShapeIndexA;
- int m_childShapeIndexB;
- };
- #endif //B3_COLLIDABLE_H
|