25.10.2011, 15:29
Quote:
Hey guys, i read the page about the quatrions but i'm not a math genious. I simple want 3 vectors from those 4 numbers which i don't really understand.
Those 3 vectors should have length 1 and have this formation (x, y, z) Here is a picture explaining what i mean. Maybe something like GetVehicleXVector(vehicleid, &Float ![]() GetVehicleYVector(vehicleid, &Float ![]() GetVehicleZVector(vehicleid, &Float ![]() would be nice |
Also sa-mp does have an function to get the 4 quads:
https://sampwiki.blast.hk/wiki/GetVehicleRotationQuat
sounds like the problem located here: http://www.ogre3d.org/forums/viewtopic.php?p=317662
This could help:
http://www.genesis3d.com/~kdtop/Quat...ntRotation.htm
and instead of vectors you can use a 3d matrix, i have somewhere some code which converts quads to 3x3 and 4x4 matrix.
(for PAWN ofcourse)
I;m not able to locate the code but I could reconstruct it if it could be usefull to you.