- Home /
Question by
GamesOfBull · Aug 22, 2017 at 12:46 PM ·
2d game2d-physics2d platformer
How can I get the player to go according to the shape of the ground?
İ am new to the coding and i'm trying to making a 2D game my player runs infinitly but it doesn't go according to shape of the grounds can anyone help me with this?
Comment
You can cast a ray ( Physics2D.RayCast() ) to the ground and use the normal to rotate a player transform.