What a Vector3 Is

The movement line on your paddle has three parts, and two of them are settled. Speed is a number you picked. Time.deltaTime is the slice of a second that keeps the paddle moving at the same rate on any computer. That leaves Vector3.up, the part that decides which way the paddle goes.

More in Write Your First Script

  1. Start and Update
  2. Fix a Compile Error
  3. Move With Code
    1. Why Time.deltaTime
    2. What a Vector3 Is
    3. Use Public Variables

All 54 topics in the Your First Unity Game