Commit graph box3d/src/math_functions.c
Author SHA1 Message Date
Erin Catto
38f2ae1e19
Reduce ghosts (#212)
Full ghost collision handling for sphere, capsule, and hull versus a
single mesh or heightfield. This requires mesh to be built with edge
identification.

Optimized mesh builder.

Removed B3_MAX_MESH_CONTACT_TRIANGLES. You will still hit performance
problems for dense meshes. Fixes #184
2026-11-10 21:53:10 -08: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
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
a252f03b19
Hull sharing (#13)
Save memory when there are many duplicate hulls. Can improve performance
in some cases.

For consistency with b3MeshData, b3Hull is renamed to b3HullData.
2026-06-11 22:39:26 -07:00
Erin Catto
d8fbeb444e
Doxygen comments (#12)
- organized headers.
- added comments to headers.
- fixed a solver determinism bug.
- removed some un-used math functions
2026-06-10 13:21:14 -07:00
Erin Catto
573e1a9fa3 initial commit 2026-05-10 13:36:52 -07:00