I am trying to let the player run on a path between two colliders on either sides using the accelerometer. I want my player to come back to the center after colliding with the sidewalls when I tilt the device.
I have tried using Raycast, but I am not getting it.