I have a world with edges around the screen and several circle bodies moving around with 0 friction and 1 restitution,
all of which are unaffected by gravity and have an initial velocity of either (-1, -1), (1, -2), (-2, -1), (2, -2).
For some reason, the circles moving at a velocity of 2 in both directions bounce around the screen endlessly as intended,
but when a ball moves at a velocity of 1, it clasps to the edge parallel to the axis it is moving at a velocity of 1 with.
For example, a ball moving at (-2, -1) begins moving along the vertical edges when it collides with them, rather than bouncing off.
The balls moving at (-1, -1) just end up getting stuck in the corner because they are essentially clasping to edges on both axes.
I already tried setting the b2_velocityThreshold to 0.0f.
How can I fix this?
all of which are unaffected by gravity and have an initial velocity of either (-1, -1), (1, -2), (-2, -1), (2, -2).
For some reason, the circles moving at a velocity of 2 in both directions bounce around the screen endlessly as intended,
but when a ball moves at a velocity of 1, it clasps to the edge parallel to the axis it is moving at a velocity of 1 with.
For example, a ball moving at (-2, -1) begins moving along the vertical edges when it collides with them, rather than bouncing off.
The balls moving at (-1, -1) just end up getting stuck in the corner because they are essentially clasping to edges on both axes.
I already tried setting the b2_velocityThreshold to 0.0f.
How can I fix this?