schteppe / p2.js

JavaScript 2D physics library
Other
2.64k stars 330 forks source link

Sensor shapes with ccd enabled don't ignore collisions and get stuck #347

Open sarunasi opened 5 years ago

sarunasi commented 5 years ago

When shape has either sensor = true or collisionResponse = false and body has ccd enabled (ccdSpeedThreshold = 0) it starts colliding with other bodies even though it shouldn't. It also gets stuck inside them.

Example: https://jsfiddle.net/jk05zv1u/13/ Both shapes are sensors. The top shape is without ccd and botom one is with ccd enabled. Top shape works as expected.