Question
Hello I need help editing this code to find out how long this curving soccer ball will be in the air until it hits ground
Hello I need help editing this code to find out how long this curving soccer ball will be in the air until it hits ground and find the force of the equation and the trajectory of the ball? The website that I used for this is https://www.wired.com/story/lets-use-physics-to-model-a-curving-soccer-ball/
GlowScript 2.7 VPython #this prevents accidental user scrolling scene.userzoom=False
#gravitational field vector g=vector(0,-9.8,0)
#these two lines make the ground ground=box(pos=vector(0,-1.5,0), size=vector(10,.2,20), color=color.green) line=box(pos=vector(0,-1.49,0), size=vector(.1,.2,20), color=color.white)
#the soccer ball ball=sphere(pos=vector(0,-1.4,9.5), radius=.105, color=color.white, make_trail=True) #density of soccer ball rhosoccer=74*1.02 #74 times the density of air #calculate the mass of the soccer ball ball.m=(rhosoccer*4*pi*ball.radius**3)/3
#launch speed in m/s - YOU CAN CHANGE THIS v0=15 #launch angle - YOU CAN CHANGE THIS
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started