Hi everyone!
I'm currently developing 2D side scroll game with Libgdx + Box2D.
And I'm facing some problems with ChainShape (the ground) and PolygonShape (the cart body) collisions.
Please look at this video: http://www.youtube.com/watch?v=gljgMn8lYfs
As you see the PolygonShape jitters(?) when collides with ChainShape. BUT it only happens on sharp edges!
What I've tried:
Any suggestions why it's happening and how can I fix/avoid it? 🙁
I'm currently developing 2D side scroll game with Libgdx + Box2D.
And I'm facing some problems with ChainShape (the ground) and PolygonShape (the cart body) collisions.
Please look at this video: http://www.youtube.com/watch?v=gljgMn8lYfs
As you see the PolygonShape jitters(?) when collides with ChainShape. BUT it only happens on sharp edges!
What I've tried:
- - Increase/decrease velocityIterations/positionIterations. Didin't help. Currently they are set to 10/8 (as shown in video).
- Turn off CCD. Didin't help. Currently is turned on.
- Set velocityThreshold to zero. Didin't help. Currently is default - 1f.
- Set restitution/friction values to zero. Didin't help.
Any suggestions why it's happening and how can I fix/avoid it? 🙁
