QUESTION IMAGE
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
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.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
myBall.pos.y = myBall.pos.y - 2