Draw sleep velocity (#49)
- draw sleep velocity for debugging - added back shape names with B3_SHAPE_NAME_LENGTH - zup command line option
This commit is contained in:
parent
0f6fdad541
commit
540ea387b0
28 changed files with 554 additions and 132 deletions
24
src/shape.h
24
src/shape.h
|
|
@ -12,6 +12,16 @@
|
|||
typedef struct b3BroadPhase b3BroadPhase;
|
||||
typedef struct b3World b3World;
|
||||
|
||||
typedef enum b3ShapeFlags
|
||||
{
|
||||
b3_enableSensorEvents = 0x01,
|
||||
b3_enableContactEvents = 0x02,
|
||||
b3_enableCustomFiltering = 0x04,
|
||||
b3_enableHitEvents = 0x08,
|
||||
b3_enablePreSolveEvents = 0x10,
|
||||
b3_enlargedAABB = 0x20,
|
||||
} b3ShapeFlags;
|
||||
|
||||
typedef struct b3Shape
|
||||
{
|
||||
int id;
|
||||
|
|
@ -29,22 +39,14 @@ typedef struct b3Shape
|
|||
b3AABB fatAABB;
|
||||
b3Vec3 localCentroid;
|
||||
|
||||
b3SurfaceMaterial material;
|
||||
int materialCount;
|
||||
b3SurfaceMaterial material;
|
||||
b3SurfaceMaterial* materials;
|
||||
|
||||
b3Filter filter;
|
||||
void* userData;
|
||||
void* userShape;
|
||||
|
||||
uint16_t generation;
|
||||
bool enableSensorEvents;
|
||||
bool enableContactEvents;
|
||||
bool enableCustomFiltering;
|
||||
bool enableHitEvents;
|
||||
bool enablePreSolveEvents;
|
||||
bool enlargedAABB;
|
||||
|
||||
union
|
||||
{
|
||||
b3Capsule capsule;
|
||||
|
|
@ -55,6 +57,10 @@ typedef struct b3Shape
|
|||
const b3CompoundData* compound;
|
||||
};
|
||||
|
||||
uint16_t generation;
|
||||
// b3ShapeFlags
|
||||
uint8_t flags;
|
||||
char name[B3_SHAPE_NAME_LENGTH + 1];
|
||||
} b3Shape;
|
||||
|
||||
// A single material shape keeps its material inline. Multi material meshes and compounds own a heap
|
||||
|
|
|
|||
Loading…
Reference in a new issue