Hi I have a slight problem with box2d
I am not sure if this is a bug, or a property of newtonian physics but it would be really nice if you could help me get this to work.
My problem is basically when a circleShape is as close to a wall (2 polygon edge) as possible and another circle shape hits it, it does not move from the wall.
This effect can be seen in the varying restitution example, when gravity is disabled and you put 1.0 restitution ball on the ground and throw the others at it.
The effect I want is similar to when in pool, and one ball lies and touches an edge, and another ball hits it hard enough the both leave the edge.
I have tried a few things like increasing the restitution above 1 on the edge but when there is exactly no space between the circle and edge, the ball just moves along the same axis as the edge.
Any help would be greatly appreciated.
Update: I fixed this with a small "hack", by applying a small impulse on this particular object on collisions, this of course applies to all collisions with this particular object but seems to work for my case. Further comments are well appreciated though.
I am not sure if this is a bug, or a property of newtonian physics but it would be really nice if you could help me get this to work.
My problem is basically when a circleShape is as close to a wall (2 polygon edge) as possible and another circle shape hits it, it does not move from the wall.
This effect can be seen in the varying restitution example, when gravity is disabled and you put 1.0 restitution ball on the ground and throw the others at it.
The effect I want is similar to when in pool, and one ball lies and touches an edge, and another ball hits it hard enough the both leave the edge.
I have tried a few things like increasing the restitution above 1 on the edge but when there is exactly no space between the circle and edge, the ball just moves along the same axis as the edge.
Any help would be greatly appreciated.
Update: I fixed this with a small "hack", by applying a small impulse on this particular object on collisions, this of course applies to all collisions with this particular object but seems to work for my case. Further comments are well appreciated though.