Commit graph box3d/samples/main.cpp
Author SHA1 Message Date
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
51f056e0a9
SAT benchmark (#177) 2026-10-02 20:47:05 -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
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
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
ef8ef0187a
Ghost collision improvements (#61)
- flag to disable hull-mesh speculative collision
- faster atomics #55 
- fix triangle vs hull logic
- fix #58 and #59
- improved shadows in samples app, a bit more expensive
2026-07-08 23:53:06 -07:00
Erin Catto
540ea387b0
Draw sleep velocity (#49)
- draw sleep velocity for debugging
- added back shape names with B3_SHAPE_NAME_LENGTH
- zup command line option
2026-07-05 00:33:00 -07:00
Erin Catto
1bec63c9ee
Draw distance slider (#44)
Helps render performance on integrated GPUs.
Added render culling for baked compounds.
2026-07-03 20:26:19 -07:00
Erin Catto
655799893a
Fixes 03 (#40)
Fixes #33, #34, #35, #37, #39, #41, #42, #43

Also fixes b3Body_SetMassData inertia tensor.
2026-07-03 17:15:03 -07:00
Erin Catto
1c5ac42c37
Fixes 01 (#26)
Fix #25 
Fix replay mover colors
Update README
Added unit test for CCD move events
Avoid Linux crash when OpenGL 4.5 is not present
2026-07-01 23:19:23 -07:00
Erin Catto
69037feaba
Build polish (#18)
Improve build process and documentation.
Improved ray versus capsule accuracy.
UI improvements
2026-06-28 10:44:34 -07:00
Erin Catto
0c8ef46931
Replay fixes (#17)
Fixes to work with our game.
Replay fixes and improvements.
Removed shape names (save memory).
B3_DEFAULT_CATEGORY_BITS  is now UINT64_MAX to make selection easier.
2026-06-26 21:10:10 -07:00
Erin Catto
5c9b516486
Replay (#16)
Recording and replay system for Box3D. Ported from Box2D.

b3HeightField is now b3HeightFieldData and is a blob.
2026-06-20 23:35:04 -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
9e02b7f3b3
New sample renderer and UI (#10)
No changes to simulation
2026-06-06 10:06:05 -07:00
Erin Catto
573e1a9fa3 initial commit 2026-05-10 13:36:52 -07:00