I have a 2D player sprite, controlled like the player in "asteroids". (rigidbody2d; boxcollider2d; movement controlled using AddForce/AddTorque for translation/rotation; rotate;accelerate/brake)
It moves along a racetrack which also has a Collider2D. If the player touches the wall (edge), it turns to face the wall and the forward motion stops of course (driving straight into the wall).
How do I make it so that the player slides along the wall, maintaining forward motion? Rather than rotating to face the wall and stopping.
Tried circlecollider, modifying the shape of the boxcollider (to be longer in the direction of motion) and also played with materials.