Convert IPL to PWN (Rotation not correct)
#1

Hi,

I want to convert maps made with MEd a pawn script.
I already found the solution to convert Quaternion to Euler Angles for rotation.
My converter says 150,30,0 (rotation X,Y,Z). And MEd also shows 150,30,0 for the rotation.
But if I try to use these values for the rotation in CreateObject the in-game object rotation is wrong.

Here the code I used to write my converter: http://www.darwin3d.com/gamedev/quat2eul.cpp


What did I do wrong?
Reply
#2

Probably this could help you:

Quote:

The PAWN code is not incorrect, the functions GTA uses to rotate the objects are incorrect. IIRC z rotation is done around the world's z axis, x and y rotation are done around the object's x and y axies respecitvely.

Found that on another board, I'm having a similar issue (see my post).

This most likely won't help you anymore, but probably it will help other users.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)