Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 2: Making Code Respond to Players

Find the Change in the Rotation Axis

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

To calculate the change in rotation, 

Make sure this matches the axis you are rotating around! If your chest lid rotates around the y axis, for example, you need to use y in both the this.goalRotation and this.startingRotation