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.
- In the
ChestLidScript
, create a new variable calledgoalRotation
above thestart
function. - Assign
goalRotation
tonew Euler()