Commit graph box3d/test
Author SHA1 Message Date
Erin Catto
98147a2188 Added some fallbacks. Update goldens 2026-11-09 23:14:54 -08:00
Erin Catto
fbae454ebc fixes 2026-11-09 21:12:12 -08:00
Erin Catto
b0825bc167 ghost oracle and cleanup 2026-11-09 17:38:43 -08:00
Erin Catto
8f2c260620 improve hull versus triangle voronoi selection 2026-11-09 16:26:25 -08:00
Erin Catto
d624766043 clean up 2026-11-09 12:08:29 -08:00
Erin Catto
a974c0094f wall to cliff 2026-11-08 11:20:38 -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
938681a52e 2d hull 2026-11-07 17:08:57 -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
f0ed536b39 simplify 2026-11-06 21:41:52 -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
5d591a90db neighbor normal for heightfield 2026-10-30 16:52:11 -07:00
Erin Catto
3b4878b7f2 quantized neighbor normals 2026-10-30 15:37:39 -07:00
Erin Catto
1a7e09c49d fix for ghost collision on reflected meshes
remove B3_MAX_MESH_CONTACT_TRIANGLES cap
2026-10-29 23:05:48 -07:00
Erin Catto
3362633204
Dynamic Mover (#202)
Port the dynamic character mover from Box2D including the mover joint
and pogo joint.

Match the mover and sample structure of Box2D.
2026-10-27 22:33:17 -07:00
Erin Catto
f36d061ba2
CMake improvements (#201)
- Update CMake to parity with Box2D. Removed BOX3D_AVX2 due to runtime
dispatch.
- CI fixes for ubuntu
- Doxygen refresh from Box2D
2026-10-20 15:15:20 -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
5d83df83ab
Improve compound serialization (#183)
- no more pointer fixups
- reduced storage 20% by removing leaf proxies
2026-10-07 14:48:58 -07:00
Erin Catto
3d9db79ee1
various recording fixes (#182) 2026-10-06 22:45:33 -07:00
Erin Catto
003a3f7728
Fix recording crash on compounds (#181) 2026-10-06 17:33:29 -07:00
Erin Catto
f8c4fe83df
Shape cast support for box movers (#180)
Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com>
2026-10-06 16:43:20 -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
5643cd81ff
Remove compound mesh child material limit. (#172) 2026-09-25 14:56:44 -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
47d7f7cc7e
clockwise option, joint is awake (#130)
- b3MeshDef gets stride and clockwise option
- Added b3Joint_IsAwake
- Added b3Body_TimeOfImpactMover
- #116
- Smoother mover collision: #141
- Shape casts now ignore backside collision on mesh and height-field
triangles, same as ray casts.
2026-08-29 21:47:53 -07:00
Erin Catto
30c67b5e6d
Fixed the 64-bit hash function and added unit test (#129)
The 64-bit hash function was not well tested and had a bad optimization.
Switched to using rapidhash: https://github.com/Nicoshev/rapidhash
2026-08-12 17:13:26 -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
781673be80
Fixes 09 (#104)
- #86
- #88 
- #87 
- #89
2026-07-24 21:48:23 -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
d421e45c82
Update benchmarks (#77)
The large pyramid got larger, not slower.

Renamed b3CreateCompound to b3CreateBakedCompound and added some
comments. There is confusion between run-time compounds and baked
compounds.
2026-07-12 22:49:25 -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
aaa795e34f
Edge edge optimization (#63)
From #54
2026-07-10 16:14:53 -07:00
Erin Catto
52f1a254ad
Name cache (#53)
Removed B3_BODY_NAME_LENGTH and B3_SHAPE_NAME_LENGTH.
Now using a name cache instead to save memory and make recordings more
universal.
This is a recording version bump.
2026-07-06 17:33:45 -07:00