Hi,
I'm trying to make a game like "Gorilla". Don't know if you've ever played it, but you're two players (two gorillas) and you are standing ontop of tall buildings. You are then supposed to throw bananas on each other. You enter the speed and angle of the banana to make it go over the buildings and hit the other gorilla. And there is also wind blowing in different directions all the time that you have to take in count when you decide what angle and speed you're going to use.

I know how to calculate the path of the banana if you don't care about wind. But I have no idea what to do when there is wind blowing. Can anyone help, please?

Currently I have this code (just to see if it'll work)
VB Code:
  1. Private Sub cmdDraw_Click()
  2.     Const pi As Double = 3.14159265358979
  3.     Const g As Double = 9.82
  4.     Dim v As Double
  5.     Dim a As Double
  6.     Dim x As Double
  7.     Dim y As Double
  8.    
  9.     If edtV.Text = "" Or edtA.Text = "" Then
  10.         MsgBox "Nu glömde du igen..."
  11.         Exit Sub
  12.     End If
  13.    
  14.     Me.Cls
  15.    
  16.     v = edtV
  17.     a = edtA
  18.  
  19.     Me.Line (0, 200)-(600, 200)
  20.     CurrentX = 0
  21.     CurrentY = 200
  22.    
  23.     x = 0
  24.     Do
  25.         y = Tan(a * (pi / 180)) * x - g / (2 * v * v * Cos(a * (pi / 180)) * Cos(a * (pi / 180))) * x * x
  26.         Me.Line -(x * 5, -(y * 5) + 200)
  27.         x = x + 1
  28.     Loop Until Tan(a * (pi / 180)) * x - g / (2 * v * v * Cos(a * (pi / 180)) * Cos(a * (pi / 180))) * x * x < -1
  29. End Sub