Hi,
I am making to self practive a little Rocket-League like game, in top-down 2D view.
I want the ball to bounce on the map walls ; my outside wall has a maerial with a bounciness of 1.
However, when the player is going through a wall, it is “shaking” constantly.
The shake is like this gif, but hyperfast. I am holding the forward direction key, like i want to exit the arena (white wall).
I am moving the player using its rigidbody2d by settings its velocity. (_rigidbody2D.velocity = (direction);).
How to prevent this shake from happening ? Am I using the wrong rigidbody movement system ? (Better use MovePosition in this case ?)
Thanks.