it appears that yspeed is "", which implies speed from gets is not what you expect it to be.  puts speed after you gets it and see.
On Dec 15, 2009, at 11:38 PM, Teodor Carstea wrote:

> speed*Math.sin(angle)