I have an object that checks the slope under it by firing 2 raycasts every frame, one to the left of it and one to the right.
Now how can I create a "line" between those 2 vector3? I want to move the object along this line by pressing right, and to the opposite direction when pressing left. If possible by using set velocity.