- Home /
Question by
abstractfragment · Sep 13, 2015 at 05:23 AM ·
2d-platformerphysics2d
How do deal with slopes in Unity2D with Physics-Based Movement?
I'm properly stumped here. So basically the way my movement is set up is that the player in terms of collision is box and circle, meaning the bottom of the character is just a circle that should be able to roll over stuff. The player presses move and they move either left or right depending on the controller axis. The problem I'm running into is stairs and slopes. I'm using vector2.right so what is happening I guess is the force is being applied INTO the slope instead of up or down it. Is there anyway to get a vector that is along the tangent of the bottom circle collider so I could apply force UP and DOWN the slope instead of into it?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612033538im_/https://answers.unity.com/themes/thub/images/avi.jpg)