not proper collision in box2d

流过昼夜 提交于 2019-12-02 01:15:05

Try to use isBullet=true property on your ball body

Have you tried playing around with these properties: density, friction and restitution.

The ball could be moving so fast that on impact with the rectangular body, the force of the ball is to high for the rec body. Which means that the ball cannot be stopped by the rec body, that why it is passing through it.

Just a guess.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!