Why is my characters Y position being controlled by its Gravity Scale?
I am trying to make the character fall normally; however, the character's Y position is set to a certain point which is lower the higher I set the Gravity Scale. Here's my code:
 void Update()
 {
     xinput = Input.GetAxisRaw("Horizontal");
 }
 void FixedUpdate()
 {
     rb.MovePosition(new Vector2(rb.position.x + speed * xinput, 0));
 }
 
               }
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
Gravity Direction Change 0 Answers
Rotation character whit the camera 0 Answers
How do I keep objects in y0 without freezing them? 0 Answers
Gravity problem (javascript) 0 Answers
Character jumps out of a ramp instead of sliding down it 0 Answers