Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 2: Making Code Respond to Players

Set the Goal for the Rotation Animation

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

Once you have found the rotation that works for your chest lid to look open, notice which axis you used, and what the value was. Depending on how you made your chest, it may not be x or a negative number for you.

For this chest, the chest looked open when x was set to -30
  1. In the Scripts section of the Entity panel, find the Goal Rotation value that goes with your goalRotation variable.
  2. Enter the rotation you found in the previous steps in there.