Edit Gravity for Ramps
I have a 2d game where I move my character by using:
transform.position += new Vector3(somenumber, 0f);
The map contains ramps of different angels and flat ground.
How can I make my character move the same speed when going up a ramp and down a ramp? How can I disable the momentum, so my character doesn't gain speed going down and doesn't loose speed going up?
Comment