MTA 1.1.1 > Pawn, rotations are weird ?
#5

Quote:
Originally Posted by gamer931215
Посмотреть сообщение
i know, but i am making my own converter!
so how i can transform the mta rotations to samp rotations, because there different
Try multiplying by 180 and then dividing by pi, i believe thats how i did it in one of my previous apps the required MTA rotation converting.


EDIT:


pawn Код:
Private Function radians2degrees(ByVal radians As Double) As Double

    Dim degrees As Double = Math.Round(radians * 180.0 / Math.PI, 6)

    If radians = 0.0 Then
        Return 0.0
    End If

    radians2degrees = degrees
End Function
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)