I am making a game where the main mechanic is falling, however when I fall faster my character moves slower on the x axis, how do I remain the same amount of control for the x axis, but still allow infinite terminal velocity?
My movement code:
void FixedUpdate () {
float inputX = Input.GetAxis("Horizontal");
float velocityX = player.GetComponent<Rigidbody2D>().velocity.x + (inputX / 10);
float velocityY = player.GetComponent<Rigidbody2D>().velocity.y;
if (!GameOver.paused)
{
player.GetComponent<Rigidbody2D>().velocity = new Vector2(velocityX, velocityY);
}
}