QUESTION IMAGE
Question
multiple choice
which line of code moves the ball up?
○ myball.pos = myball.pos + 1
○ myball.pos.y = myball.pos.y + 2
○ myball.pos.x = myball.pos.x + 1
○ myball.pos.z = myball.pos.z + 2
Brief Explanations
In a 2 - D or 3 - D coordinate system, the y - axis is typically used to represent the vertical direction. Increasing the y - coordinate value moves an object upwards.
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