WIP example for real-time collision detection features of Bullet
This commit is contained in:
@@ -15,6 +15,9 @@ enum b3ShapeTypes
|
||||
SHAPE_CONCAVE_TRIMESH=5,
|
||||
SHAPE_COMPOUND_OF_CONVEX_HULLS=6,
|
||||
SHAPE_SPHERE=7,
|
||||
SHAPE_CAPSULE=8,
|
||||
SHAPE_COMPOUND_OF_SPHERES=9,
|
||||
SHAPE_COMPOUND_OF_CAPSULES=10,
|
||||
MAX_NUM_SHAPE_TYPES,
|
||||
};
|
||||
|
||||
@@ -37,16 +40,15 @@ struct b3Collidable
|
||||
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;
|
||||
int m_shapeIndex;//used for SHAPE_COMPOUND_OF_CONVEX_HULLS
|
||||
float m_radius;//used for SHAPE_COMPOUND_OF_SPHERES or SHAPE_COMPOUND_OF_CAPSULES
|
||||
float m_height;//used for SHAPE_COMPOUND_OF_CAPSULES
|
||||
int m_unused2;
|
||||
};
|
||||
|
||||
struct b3CompoundOverlappingPair
|
||||
@@ -57,4 +59,5 @@ struct b3CompoundOverlappingPair
|
||||
int m_childShapeIndexA;
|
||||
int m_childShapeIndexB;
|
||||
};
|
||||
|
||||
#endif //B3_COLLIDABLE_H
|
||||
|
||||
Reference in New Issue
Block a user