SIMD hull collision (#93)
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
This commit is contained in:
parent
d421e45c82
commit
c37cfe4cd7
84 changed files with 3898 additions and 1151 deletions
|
|
@ -1322,14 +1322,17 @@ b3MeshData* b3CreateWaveMesh( int xCount, int zCount, float cellWidth, float amp
|
|||
float omegaX = 2.0f * B3_PI * columnFrequency * cellWidth;
|
||||
|
||||
float x = -0.5f * xWidth;
|
||||
b3CosSin cs = { 0 };
|
||||
for ( int ix = 0; ix <= xCount; ++ix )
|
||||
{
|
||||
float rowHeight = sinf( omegaX * ix );
|
||||
cs = b3ComputeCosSin( omegaX * ix );
|
||||
float rowHeight = cs.sine;
|
||||
|
||||
float z = -0.5f * zWidth;
|
||||
for ( int iz = 0; iz <= zCount; ++iz )
|
||||
{
|
||||
float columnHeight = sinf( omegaZ * iz );
|
||||
cs = b3ComputeCosSin( omegaZ * iz );
|
||||
float columnHeight = cs.sine;
|
||||
|
||||
float y = amplitude * rowHeight * columnHeight;
|
||||
vertices.data[index] = (b3Vec3){ x, y, z };
|
||||
|
|
@ -1483,7 +1486,7 @@ b3MeshData* b3CreateBoxMesh( b3Vec3 center, b3Vec3 extent, bool identifyEdges )
|
|||
return b3CreateMesh( &def, NULL, 0 );
|
||||
}
|
||||
|
||||
b3MeshData* b3CreateHollowBoxMesh(b3Vec3 center, b3Vec3 extent)
|
||||
b3MeshData* b3CreateHollowBoxMesh( b3Vec3 center, b3Vec3 extent )
|
||||
{
|
||||
float x = extent.x;
|
||||
float y = extent.y;
|
||||
|
|
|
|||
Loading…
Reference in a new issue