[ASAP!] Question # 6 (Visual Python)
Multiple Choice
Which line of code moves the ball up?

1. myBall.pos.z = myBall.pos.z + 2
2. myBall.pos.x = myBall.pos.x + 1
3. myBall.pos = myBall.pos + 1
4. myBall.pos.y = myBall.pos.y + 2​

Respuesta :

Hello!

The answer to your question is:
4. myBall.pos.y = myBall.pos.y + 2

Explanation, if you’d like one:
1. is incorrect as “z” isn’t a direction in which the ball can move.
2. is incorrect as “x” would be moving the ball right.
3. is incorrect as there is no direction defined.

I hope that this helps you out!