Question by 
               MCweb · Apr 25, 2021 at 07:39 PM · 
                positionvelocityupdate functiongetaxis  
              
 
              Weird Z position behavior
I'm new to Unity. I have a ball on the ground. The ball has a Rigidbody. In the update function I put GetComponent().velocity = new Vector3(Input.GetAxisRaw("Horizontal"), 0, Input.GetAxisRaw("Vertical")); and after I hit play, before pressing any buttons, the Z position in the inspector keeps changing, to numbers ending with e-some number. Why?
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
how to control instances velocity? 0 Answers
Moving rigidbody with addforce, velocity or position causes another object not to collide anymore. 0 Answers
Inventory system, GetAxis actions? (complex problem) 0 Answers
need help badly 2 Answers
Predicting Future Rigidbody position based on velocity 1 Answer