Skip to content
Snippets Groups Projects
  1. Sep 13, 2024
  2. Jun 19, 2024
  3. May 31, 2024
    • Erin Catto's avatar
      Sensor fixes (#165) · 1d7d1cf1
      Erin Catto authored
      Sensor sleeping was broken and asserting. Fixing sensor flags and
      testing sensors more.
      
      Fixes #162
      1d7d1cf1
  4. May 29, 2024
  5. May 28, 2024
    • Erin Catto's avatar
      Update manual (#161) · 67fe82fd
      Erin Catto authored
      More include file consolidation, simplification.
      Remove block allocator after testing showed it didn't improve
      performance but used a lot more memory.
      Broad-phase mover buffer now using mask bits for faster pair management.
      (will be reverted since it breaks filter groups).
      User manual updated for v3.
      67fe82fd
  6. May 19, 2024
    • Erin Catto's avatar
      Doxygen comments (#159) · dd6097fc
      Erin Catto authored
      Cleaned up all doxygen comments in include directory.
      Cleaned up SDF shaders for border thickness.
      Joint reaction forces and sample with breakable joints.
      User can adjust length units using b2SetLengthUnitsPerMeter
      Simplified include files
      dd6097fc
  7. May 16, 2024
    • Erin Catto's avatar
      Border thickness (#158) · 0f85bc10
      Erin Catto authored
      I got some feedback on shadertoy about my SDF renderer. So fixing up
      those and removing the arbitrary zoom multiplier.
      Added max force to mouse joint.
      todo - add max force to mouse joint def
      0f85bc10
  8. May 12, 2024
  9. May 10, 2024
    • Erin Catto's avatar
      Hit events (#155) · 8f89cdc8
      Erin Catto authored
      Added hit events with world level velocity threshold. Optional per
      shape. Events available after time step.
      
      Added motors to distance joints.
      8f89cdc8
  10. May 05, 2024
    • Erin Catto's avatar
      More benchmarks (#153) · cc015ca3
      Erin Catto authored
      New render primitives.
      Large world testing.
      Memory stats.
      Bug fixes.
      Option to disable automatic mass computation to avoid n-squared
      computation on compounds.
      Explosion function.
      Per body sleep threshold that uses max extents for rotation sleeping
      Hex color for all debug draw.
      Option to draw using camera bounds for large world testing. Has minor
      sorting problem.
      Option to create contacts when static shapes are created or destroyed.
      cc015ca3
  11. Apr 27, 2024
    • Erin Catto's avatar
      Chain sample (#152) · 0c30b825
      Erin Catto authored
      Added sample that shows how to connect two chain shapes.
      b2Rot now has cosine first.
      Fixed polygon versus smooth segment collision for concave portion.
      Shapes are now connected to bodies using a doubly linked list for fast
      removal.
      API structures now using int32_t instead of int for easier binding.
      
      fixes #117
      fixes #105
      0c30b825
  12. Apr 26, 2024
  13. Apr 25, 2024
  14. Apr 24, 2024
  15. Apr 22, 2024
    • Erin Catto's avatar
      Cache optimization (#135) · 41e47c6a
      Erin Catto authored
      Refactored internal storage to use solver sets for improved memory
      locality and improved performance as a result.
      
      There is now a hot/cold split for bodies, contacts, and joints.
      
      This is a huge change as the layout of memory has changed completely.
      Some things, such as enable/disable bodies and changing the body type
      are quite complex now. So this required a lot of testing and validation
      code.
      
      Bodies, contacts, and joints data is now moved when an island goes to
      sleep or wakes up.
      
      Static bodies exist in their own solver set, but this is hidden from the
      user. All solver set details are hidden from the user and they provide
      no user facing features other than improved performance.
      
      I also added a benchmark application with several benchmarks. These
      generate CSV files with results.
      
      400 pyramids, 22000 bodies
      time in milliseconds (8 cores on 7950x)
      
      solver set branch
      step 2.3
      -- collide 1.15
      -- solve 1.15
      
      main branch
      step 3.3
      -- collide 1.45
      -- solve 1.7
      41e47c6a
  16. Mar 02, 2024
  17. Mar 01, 2024
    • Erin Catto's avatar
      Bullets (#127) · 5d134e2c
      Erin Catto authored
      - implement bullet feature
      - fix samples for macOS
      - add TOI fallback for SpeculativeFailure sample
      - bug fixes: offset capsule inertia and max extent
      
      Thanks to @irlanrobson and @dgregorius for the bug reports
      5d134e2c
  18. Feb 27, 2024
    • Erin Catto's avatar
      Speculative margin fix (#126) · 3cf7cab4
      Erin Catto authored
      - consistent bounding boxes for speculative
      - Emscripten build setting
      - wake body when modifying shape
      #116 
      #112
      3cf7cab4
  19. Feb 26, 2024
    • Erin Catto's avatar
      fix shape cast initial overlap and tolerance (#125) · 412d501a
      Erin Catto authored
      improve shape cast sample
      
      fix #25 and #26
      
      test case for #113
      412d501a
    • Erin Catto's avatar
      Body movement events (#120) · 3bb5e633
      Erin Catto authored
      remove unneeded solver arrays
      added fixed rotation functions
      added joint limit functions
      adjusted camera for all samples
      fixed solver index bug
      reset impulse when enabling/disabling limits and motors
      fixed bug destroying joint attached to sleeping body
      added function to wake bodies attached to a joint
      
      #123, #111
      3bb5e633
  20. Feb 25, 2024
  21. Feb 20, 2024
  22. Feb 19, 2024
    • Erin Catto's avatar
      New Solver (#115) · 176c80c2
      Erin Catto authored
      Ported TGS_Soft/Fixed from Solver2D.
      The rotation state is now a sine/cosine pair (e.g. complex number).
      Contact manifolds and constraints now try to preserve precision as much
      as possible for large coordinates.
      176c80c2
  23. Jan 01, 2024
    • Erin Catto's avatar
      Add more getters and setters (#99) · f4a72f13
      Erin Catto authored
      get/set friction/restitution/density
      get joint type
      compute AABB for a body
      more setters and getters
      fixed polygon vs circle bug
      added cliff sample
      renamed bitset fields for Dirk
      
      #94, #97, #98, #95, #93
      f4a72f13
    • Erin Catto's avatar
      Presolve Sample (#96) · 48e277e9
      Erin Catto authored
      - sample platformer to show presolve callback usage
      - fixed empty world crash
      - option to disable AVX2 (SSE2 fallback)
      - fixed polygon centroid
      - mingw support
      - unit test for a world that has all bodies destroyed
      48e277e9
  24. Dec 30, 2023
    • Erin Catto's avatar
      Fix falling body assert (#92) · 077d04a6
      Erin Catto authored
      API to get parent chain id
      default definitions as constants
      128 max worlds
      removed extents from mass data
      removed box2d_exports.h and implemented similar switches in api.h
      user_constants.h optional and off by default
      added some missing API functions
      added shape filter sample
      addresses #93
      077d04a6
  25. Dec 29, 2023
  26. Dec 28, 2023
  27. Dec 27, 2023
    • Erin Catto's avatar
      API cleanup (#87) · fcf87ccb
      Erin Catto authored
      improve build performance
      cmake cleanup
      API documented
      allow length units and max polygon vertices to be specified in cmake
      options
      fcf87ccb
  28. Dec 25, 2023
    • Erin Catto's avatar
      Doxygen setup (#85) · e1a6d088
      Erin Catto authored
      Added doxygen to cmake. Using new `doxygen_add_docs` feature. Tweaked settings to work will with C API.
      e1a6d088
  29. Dec 23, 2023
    • Erin Catto's avatar
      Migrate remaining joint types (#84) · 519ded32
      Erin Catto authored
      faster prismatic joint
      added wheel joint
      added motor joint
      
      decided to skip pulley and gear joints for now
      the friction joint can be implemented with the motor joint
      
      added several samples, include ragdoll sample
      519ded32
  30. Dec 17, 2023
  31. Dec 13, 2023
  32. Dec 12, 2023
  33. Dec 10, 2023