box2d-optimized icon indicating copy to clipboard operation
box2d-optimized copied to clipboard

Implementation issues with TOI solver

Open mtsamis opened this issue 4 years ago • 1 comments

There are some bugs in the reworked TOI implementation that make it not work correctly.

  • It looks like bullet bodies work, at least to some extend, as can be found out by playing around with the "Add pair" testbed scene.
  • Dynamic vs static isn't working. This can be seen in the "Platformer" testbed scene when compared to Box2d.

I need to fix these issues and investigate the correctness of the TOI implementation in general.

mtsamis avatar Jan 11 '22 20:01 mtsamis

I found the Continuous test does not worked as original box2d too. It looks like the CCD algorithm not worked correctly. Here is the screenshot of two testbed:

  • box2d-optimized: Screen Shot 2023-01-06 at 11 22 40
  • box2d: Screen Shot 2023-01-06 at 11 22 12

zero-meta avatar Jan 06 '23 03:01 zero-meta