Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 2: Making Code Respond to Players

Make a new Euler Variable

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

To rotate the chest lid, we will need a variable to save where it should end up, similar to the way we used upAmount in the last lesson. 

  1. In the ChestLidScript, create a new variable called goalRotation above the start function.
  2. Assign goalRotation to new Euler()