SIMD based hull collision inspired by example code from @cairnc in #54 <img width="1676" height="1332" alt="image" src="https://github.com/user-attachments/assets/58b137bd-bf7b-4c99-863c-64341b973a3d" /> - Fixed #78 - Fixed #85 and fixed CI to error on UB. - Updated benchmarks - Added AMD scalar benchmarks - Added Neon benchmarks - More determinism unit tests - Sample leak detection - Added b3Body_AllowFastRotation - Added b3Body_IsFastRotationAllowed - Bumped b3HullData version - Bumped b3CompoundData version
53 lines
1.6 KiB
C
53 lines
1.6 KiB
C
// SPDX-FileCopyrightText: 2025 Erin Catto
|
|
// SPDX-License-Identifier: MIT
|
|
#pragma once
|
|
|
|
#include "box3d/id.h"
|
|
|
|
#include <stdbool.h>
|
|
|
|
// This allows benchmarks to be tested on the benchmark app and also visualized in the samples app
|
|
|
|
typedef struct b3Capacity b3Capacity;
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
// This is used by the sample app to draw a ground grid. Should only
|
|
// be used for box hulls.
|
|
b3ShapeId GetGroundShapeId( void );
|
|
void ResetGroundShapeId( void );
|
|
|
|
void CreateTrees25( b3WorldId worldId );
|
|
void CreateTrees50( b3WorldId worldId );
|
|
void CreateTrees100( b3WorldId worldId );
|
|
void DestroyTrees( void );
|
|
void CreateJointGrid( b3WorldId worldId );
|
|
void CreateJunkyard( b3WorldId worldId );
|
|
void GetJunkyardCapacity( b3Capacity* capacity );
|
|
void StepJunkyard( b3WorldId worldId, int stepCount );
|
|
void CreateLargePyramid( b3WorldId worldId );
|
|
void CreateWidePyramid( b3WorldId worldId );
|
|
void CreateManyPyramids( b3WorldId worldId );
|
|
void GetRainCapacity( b3Capacity* capacity );
|
|
void CreateRain( b3WorldId worldId );
|
|
void StepRain( b3WorldId worldId, int stepCount );
|
|
void DestroyRain( void );
|
|
void GetLargeWorldCapacity( b3Capacity* capacity );
|
|
void CreateLargeWorld( b3WorldId worldId );
|
|
void StepLargeWorld( b3WorldId worldId, int stepCount );
|
|
void GetWasherCapacity( b3Capacity* capacity );
|
|
void CreateWasher( b3WorldId worldId );
|
|
void CreateConvexPile( b3WorldId worldId );
|
|
void GetConvexPileCapacity( b3Capacity* capacity );
|
|
|
|
// void CreateSpinner( b3WorldId worldId );
|
|
// float StepSpinner( b3WorldId worldId, int stepCount );
|
|
// void CreateSmash( b3WorldId worldId );
|
|
// void CreateTumbler( b3WorldId worldId );
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|