http://www.vbforums.com/showthread.p...hreadid=219448
please help!
Printable View
Ball(i).x = Ball(i).x + Sin(Ball(i).Angle) * 5
Ball(i).y = Ball(i).y + Cos(Ball(i).Angle) * 5
First of all change *5 to *speed so you can increase difficulty.
Secondly, it MAY be a radians/degrees problem.
Try this:
Ball(i).x = Ball(i).x + Sin(Ball(i).Angle*3.14/180) * ball(i).speed
Ball(i).y = Ball(i).y + Cos(Ball(i).Angle*3.14/180) * ball(i).speed
*Pi/180 converts degrees to radians, to change back to *180/Pi
I'm pretty sure this is your problem.
Yes, thanks!