Why small shapes tend to move left side when using Box2D JS?
I made a small example of Box2d JS. There are small ball objects (8 vertex ball). You can put the ball where you like.
The demo URL is http://nmi.jp/working/box2d/eight.html
I can't understand why the balls move left withou开发者_开发知识库t any collisions. Does anyone can explain the reason?
何回か試していると、右にも転がりますよ。The shape is bouncing on one corner of the octagon, which does not always give a perfectly vertical collision response. It's hard to tell the edges of the octagon with such a small shape, but make the shape bigger and it should become obvious.
精彩评论