Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21271

[RESOLVED] how would i tranfer the velocity or speed of an object into a single angle reading

$
0
0
im trying to explain this the best i can .
this way you change the velocity to get the balls angle change ,im trying to hopyfully ,with i havent a clue ,get the angle instead.
thanks all





Code:


                If Image1(i).x + Image1(i).Radius < 35 Then
                    Image1(i).vx = -Image1(i).vx
                End If
                If Image1(i).x + Image1(i).Radius > 981 Then
                    Image1(i).vx = -Image1(i).vx
                End If
                If Image1(i).y + Image1(i).Radius < 35 Then
                    Image1(i).vy = -Image1(i).vy
                End If
                If Image1(i).y + Image1(i).Radius > 693 Then
                    Image1(i).vy = -Image1(i).vy
                End If


Viewing all articles
Browse latest Browse all 21271

Trending Articles