QUESTION IMAGE
Question
finish the vpython code to move the ball up seven units. ball.pos = ball.pos.
Step1: Identify vertical - axis in 3D
In 3 - D space, the y - axis is typically used to represent the up - down direction.
Step2: Write code for increment
To move the ball up seven units, we need to increment the y - component of its position. So the code should be ball.pos.y = ball.pos.y + 7.
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
ball.pos.y = ball.pos.y + 7