SA-MP Forums Archive
Rotation problem, - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Rotation problem, (/showthread.php?tid=287490)



Rotation problem, - SourceCode - 03.10.2011

Код:
    GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
        object = CreateObject(1612, pos[0], pos[1], pos[2], 0, 5, 0.0);
Thats my code, When i face north or south , I get the object rotation i want, But on east or west the rotation is wrong by 90 degrees


Re: Rotation problem, - SourceCode - 04.10.2011

Bump !! Im poor at the 3d geometry


Re: Rotation problem, - Buzzbomb - 04.10.2011

What are you trying to do? If im correct it all is wrong.. Whats cords you saved?


Example
pawn Код:
object = CreateObject(1612, 1553.0026,-2308.8557,13.5428, 0, 5, 0.0);
With the cords that you saved


Re: Rotation problem, - SourceCode - 04.10.2011

Quote:
Originally Posted by Buzzbomb
Посмотреть сообщение
What are you trying to do? If im correct it all is wrong.. Whats cords you saved?


Example
pawn Код:
object = CreateObject(1612, 1553.0026,-2308.8557,13.5428, 0, 5, 0.0);
With the cords that you saved
Whats that...? Im still looking for an answer


Re: Rotation problem, - Vince - 04.10.2011

What you're saying makes no sense, because you never fetch or use the player's current facing angle.