Complete the code to create a Vector3 at position (1, 2, 3).
Vector3 position = new Vector3([1]);In Unity, Vector3 constructor takes three float values separated by commas without brackets.
Complete the code to move an object 5 units along the positive z-axis.
transform.position += new Vector3(0, 0, [1]);
To move 5 units forward along the z-axis, add 5 to the z component.
Fix the error in the code to correctly set the y position to 10.
Vector3 pos = transform.position;
pos.y = [1];
transform.position = pos;The y component should be assigned a numeric value 10, not a string or expression.
Fill both blanks to create a Vector3 pointing up with length 1.
Vector3 up = new Vector3([1], [2], 0);
A vector pointing straight up has x=0 and y=1.
Fill all three blanks to create a Vector3 scaled by 2 from (1, 3, 4).
Vector3 scaled = new Vector3([1], [2], [3]);
Scaling (1, 3, 4) by 2 gives (2, 6, 8).
