Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 1: Moving Objects

Info: Vector3 Variables

You don’t have access to this lesson
Please register or sign in to access the course content.

You may have noticed that position and rotation are determined by three number values, X, Y, and Z. A Vector3 is a useful type of object that lets us store three numbers together in one variable. 

Unlike the number variables that we have made so far, Vector3 is a class, which means to create a variable of this type we have to use the keyword new.