liabru / matter-js

a 2D rigid body physics engine for the web ▲● ■
MIT License
16.79k stars 1.96k forks source link

Slow moving bodies do not tip over edges correctly (collision cache issue) #63

Closed liabru closed 2 years ago

liabru commented 9 years ago

When a body slowly slides off an edge, it does not gain angular momentum as expected.

See: http://jsfiddle.net/Donk/4uwp42e7/

This is caused by lack of detection of such cases where the collision cache needs to be updated.

EskelCz commented 8 years ago

I just ran into this. Both versions do it. Glad you know about it.

EskelCz commented 8 years ago

Here is my demo, just in case: https://jsfiddle.net/Eskel/vvo4997m/1/

liabru commented 2 years ago

The latest release 0.18.0 should resolve issues relating to collision reuse including this one.