Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

which line of code moves the ball to the down? myball.pos.y = myball.po…

Question

which line of code moves the ball to the down?
myball.pos.y = myball.pos.y - 2
myball.pos.x = myball.pos.z - 2
myball.pos = myball.pos.y + 2
myball.pos.z = myball.pos.z + 2

Explanation:

Brief Explanations

In a typical 2 - D or 3 - D coordinate system, the y - axis is often associated with vertical movement where decreasing the y - value moves an object downwards. The first option myBall.pos.y = myBall.pos.y - 2 decreases the y - coordinate of the ball's position.

Answer:

myBall.pos.y = myBall.pos.y - 2