Math for - Adding Scripts: Practice

Read each question carefully and write down your answer.

  1. You build a block in your game. It is at position X=4, Y=6, Z=8. You want to move it 2 steps forward on the Z line. What is its new Z spot?

  2. A cube part has a side that is 2 units long. What is its volume? (Hint: Volume = `side \\times side \\times side`)

  3. You have a part that is 1 unit wide (X), 2 units tall (Y), and 3 units long (Z). If you make it two times wider, what is its new width (X value)?

  4. A light in your game is set to half brightness. If full brightness is the number `1.0`, what number shows half brightness?

  5. What if a platform is at X=10, Y=5, Z=20? You want to move it so its new spot is X=12, Y=5, Z=18.

    1. How many steps do you move it on the X line? Which way does it go (towards a bigger or smaller number)?

    2. How many steps do you move it on the Z line? Which way does it go (towards a bigger or smaller number)?