Unity for Absolute Beginners Lesson 2 - Rotate object with code
Опубликовано: 01 Октябрь 2024 на канале: Magic Monk
5,391
45
In this lesson we create our first script where we get input from the user using Input.GetAxis which is represented by a number between -1 and 1. We then store this number in a variable and rotate the plane using transform.Rotate.