# Warren Kushner
# Rec. 6

from visual import *
from random import *

xpos = random()*50


print "What is vx: "
vx = input()


print "What is vy: "
vy = input()


plane = box(pos=(0,0,0), length = 52,width=52, color=color.green )
me=box(pos=(0,0,0), length=2,width=2,height=2,color=color.blue)


target=cylinder(pos=(xpos,0.5,0), axis=(0,0.1,0), color=color.red)


ball=sphere(pos=vector(0,2,0),radius=2, color=color.blue, v=vector(vx,vy,0))

scene.autoscale=0

ball.m = 0.1
ball.p = ball.m * ball.v


dt=0.1
tmax=10
t=0
g=9.8



while (t < tmax):
    
    

    
    rate(1/dt)
    ball.pos = ball.pos + (ball.p/ball.m)*dt
    ball.p   = ball.p + vector(0, (ball.m)* -g*dt, 0)

    t = t + dt
    print t
    
    
