Rotation problem,
#1

Код:
    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
Reply
#2

Bump !! Im poor at the 3d geometry
Reply
#3

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
Reply
#4

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
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)