Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 1: Moving Objects

Add a Script to the Bottom of the Chest

You don’t have access to this lesson

Please register or sign in to access the course content.

To make a script that moves the whole chest, we need to add it to Chest-Bottom.

  1. Select Chest-Bottom and look at the Entity panel. 
  2. Hover over the Script section and click the + icon.
  3. Click the tab that reads “Unnamed resource” and change the name of the script to ChestScript
  4. Select the Chest-Bottom and look at the World transform in the Entity panel. If you move it up and down, does the X, Y, or Z value change? Put the chest back on the ground once you have the answer.