How far the ball moves with each translate

In the video when Ben moves the ball by 5 units, it moves a lot farther than it does in my code. When I wrote the code in the challenge, I multiplied the Vector3 by Time.deltatime.
Like this: ball.transform.Translate(new Vector3(amount,0,0)*Time.deltatime);
I realize that this is why my ball wasnt moving very far. However this brings up another question.
Why dont we use Time.deltatime here?

You’re not trying to move it slowly and smoothly over time, you’re just trying to set it in a new position.


This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms