Public Sub move
' Dim damp As Double = 0.99 'was 0.99
' Dim friction As Double = 0.97 'was 0.97
' Dim gravity As Double = 0.01
' vx = vx * damp
' vy = vy * damp
' vy = vy + gravity
' If ((rx + vx * friction) + radius > cv.Width) Then vx = -1 * vx
' If ((rx + vx * friction) - radius < 0) Then vx = -1 * vx
' If ((ry + vy * friction) + radius > cv.Height) Then vy = -1 * vy
' If ((ry + vy * friction) - radius < 0) Then vy = -1 * vy
' rx = rx + vx * friction
' ry = ry + vy * friction
If ((rx + vx) + radius > cv.Width) Then bounceOffVerticalWall
If ((rx + vx) - radius < cv.Left) Then bounceOffVerticalWall
If ((ry + vy) + radius > cv.Height) Then bounceOffHorizontalWall
If ((ry + vy) - radius < cv.Top) Then bounceOffHorizontalWall
rx = rx + vx
ry = ry + vy
End Sub