Commit graph box3d/test/test_determinism.c
Author SHA1 Message Date
Erin Catto
98147a2188 Added some fallbacks. Update goldens 2026-11-09 23:14:54 -08:00
Erin Catto
8f2c260620 improve hull versus triangle voronoi selection 2026-11-09 16:26:25 -08:00
Erin Catto
a2adbafec0 fix saddle tunnel 2026-11-08 09:56:24 -08:00
Erin Catto
5986b5b565 optimize culling for large point count 2026-11-07 22:55:38 -08:00
Erin Catto
8948da4715 compressed vertex neighbors 2026-11-07 11:47:38 -08:00
Erin Catto
ce07848c96 vertex ring 2026-11-06 23:00:39 -08:00
Erin Catto
04529861da update goldens 2026-11-03 18:22:06 -08:00
Erin Catto
991f3f9758 fixed GJK fallback bug
more point culling
chamfer test
2026-11-02 22:46:34 -08:00
Erin Catto
a3418cc9d1 cache snap 2026-10-31 17:26:28 -07:00
Erin Catto
66e150aa42 clean up 2026-10-31 14:45:17 -07:00
Erin Catto
18d3b54761 account for hull face 2026-10-31 12:12:33 -07:00
Erin Catto
c201d06325 hull neighbors 2026-10-31 11:43:25 -07:00
Erin Catto
1da9fe9bd6 wip 2026-10-31 00:07:57 -07:00
Erin Catto
efca0c184d
Gyro tolerance (#191) 2026-10-15 23:30:56 -07:00
Erin Catto
0cfc475b88
Solver stuff (#189) 2026-10-14 22:20:52 -07:00
Erin Catto
a2e4816b43
Fixes for #175 (#187)
See #175 

It is LLM so verbose and lacking context, but it did find a couple
things worth fixing.
2026-10-12 21:46:51 -07:00
Erin Catto
16f7f4cf4c
Tree perf (#179)
- Optimizations for falling trees.
- Increased B3_MAX_MESH_CONTACT_TRIANGLES  from 256 to 512.
2026-10-06 09:51:48 -07:00
Ethan Rutherford
e77352cd60
Add support for AVX2 and runtime feature detection (#174)
- [x] run unit tests
- [x] run all samples
2026-10-03 15:14:34 -07:00
Erin Catto
9f998c862d
SAT samples (#173) 2026-09-27 14:39:11 -07:00
Erin Catto
79fc55976a
Optimizations (#168)
- Optimize contact prepare
- Back to post restitution stage
- Optimize solver math
- Bug fixes
2026-09-24 12:21:17 -07:00
Erin Catto
9e5a4cde86
Optimizations (#161)
- cache body sim indices and split out fat aabb
- deferred restitution
- the manifold point normal velocity is only computed for restitution or
hit events, otherwise it is zero
2026-09-20 15:54:52 -07:00
Erin Catto
f555ee4208
Optimize Broad-Phase (#159)
Broad-phase optimization ported from Box2D.
2026-09-16 22:28:39 -07:00
Erin Catto
954cf879e7
Fixes (#157)
- Added b3BodyDef::safetyFactor for CCD tuning
- #155
- #153
- #148 
- #149
2026-09-16 15:46:31 -07:00
Erin Catto
f42be210a2
64-bit hashes (#126)
- ContactEvent sample
- Improved shadows
- #120 
- Triangle collision fixes
2026-08-11 18:08:34 -07:00
Erin Catto
23861418d8
Fixes 07 (#97)
#84 
#82 
Added B3_RESTITUTION_ITERATIONS to override restitution iterations.
Fix regression in hull stacking stability.
2026-07-20 22:05:11 -07:00
Erin Catto
dfa5e6add0
Fixing issues (#94)
- option to draw kinematic shapes with transparency
- slight change to triangle vs hull to reduce ghost collisions
- changed return of b3DebugDraw.DrawShapeFcn to void
#66 
#48 
#69 
#75 
#76
2026-07-19 21:43:43 -07:00
Erin Catto
c37cfe4cd7
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
2026-07-18 22:43:03 -07:00
Erin Catto
e961bfb7bf
Friction center weighted average (#71)
The central friction anchors now have C0 continuity by using a weighted
average. Reduces jitter while letting the spinning top function
correctly.

Fixes #65
2026-07-11 23:26:31 -07:00
Erin Catto
09c65b08ea
Doubles (#14)
Added a compile time option to use double precision body positions. Most
math remains single precision with minimal performance loss.

`BOX3D_DOUBLE_PRECISION`

Improved accuracy of body inertia computation when shapes are far from
the body origin.

WARNING: several APIs changed but migration should be straight forward
if doubles are not enabled.
2026-06-18 20:51:16 -07:00
Erin Catto
79cc160275
Sync body flags (#7)
- Fixed mesh point culling for vertically stacked points
- Fixed two point capsule vs capsule normal
- Fixed bug where body flags can go out of sync
- Added tests
- Updated benchmarks
2026-05-16 23:27:25 -07:00
Erin Catto
7216822064
Bug fixes and minor features (#2)
- API to query compounds directly.
- Fix some uninitialized stuff (thanks MSAN).
- Fix for store impulses on overflow.
- AABB margin reduced for small shapes
- body contact recycling option
- angular threshold for contact recycling
- reduce AABB margin on smaller shapes
- fix for hull vs tri when axis aligned
- fully locked rotation uses zero inverse inertia
2026-05-12 15:24:20 -07:00
Erin Catto
573e1a9fa3 initial commit 2026-05-10 13:36:52 -07:00