Commit graph box3d/samples
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
1fa462d71e CI fix 2026-11-09 20:23:26 -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
0fb0fdc1ec comments and images 2026-11-08 15:58:26 -08:00
Erin Catto
e51c0d7a1e comments
sphere ghost manifold sample
2026-11-08 10:54:50 -08:00
Erin Catto
a2adbafec0 fix saddle tunnel 2026-11-08 09:56:24 -08:00
Erin Catto
938681a52e 2d hull 2026-11-07 17:08:57 -08:00
Erin Catto
441ab15ac0 more ghost samples 2026-11-07 14:01:46 -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
f533aa5a70 use dihedral for edge 2026-11-06 14:45:29 -08:00
Erin Catto
590ab5a7d9 add a small amount of debug data to manifolds
refine edge contact rule
2026-11-03 17:40:11 -08:00
Erin Catto
d133a716de disable recycling and speculative in sbox issue 2026-11-02 22:56:50 -08:00
Erin Catto
991f3f9758 fixed GJK fallback bug
more point culling
chamfer test
2026-11-02 22:46:34 -08:00
Erin Catto
b2747eb2b8 faster mesh edge identification
fix for cylinder tunneling in soak
2026-11-02 14:05:15 -08:00
Erin Catto
1170814dee improve vertex handling 2026-11-01 22:48:05 -08:00
Erin Catto
e763ceb351 hook up mesh optimizer to sbox ghost collision sample 2026-11-01 16:41:59 -08:00
Erin Catto
01475134fc testing 2026-11-01 12:24:52 -08:00
Erin Catto
5e29f6515e testing sbox ghosts 2026-11-01 09:05:05 -08:00
Erin Catto
c201d06325 hull neighbors 2026-10-31 11:43:25 -07:00
Erin Catto
4a1bb35160 improve mesh drop soak 2026-10-31 10:12:52 -07:00
Erin Catto
1da9fe9bd6 wip 2026-10-31 00:07:57 -07:00
Erin Catto
00149c5500 ghost collision sample
mesh drop soak
2026-10-30 14:56:07 -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
efca0c184d
Gyro tolerance (#191) 2026-10-15 23:30:56 -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
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
51f056e0a9
SAT benchmark (#177) 2026-10-02 20:47:05 -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
8fda30e5a2
Update UI (#169)
Port Box2D UI update
2026-09-24 13:43:40 -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
3fc20f5b45
Follow cam (#107)
- follow cam in replay viewer
- world text with halo
- fixed sensor crash
- sensor visitors must now be convex
2026-07-29 22:14:26 -07:00
Erin Catto
781673be80
Fixes 09 (#104)
- #86
- #88 
- #87 
- #89
2026-07-24 21:48:23 -07:00
Erin Catto
c52908c9a9
Fixes 08 (#98)
- fix hull builder face and edge leak
- fix #95
- samples app will no longer crash if data folder is not found
2026-07-22 15:55:02 -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