Serching Vectors from Vehicle Quats
#2

Quote:
Originally Posted by Falco-Ger
Посмотреть сообщение
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, &Float:y, &Float:z)
GetVehicleYVector(vehicleid, &Float, &Float:y, &Float:z)
GetVehicleZVector(vehicleid, &Float, &Float:y, &Float:z)
would be nice
I have a thread which discusses the quaternion things, I think it was in discussion, just check out my profile and threads started by me.

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.
Reply


Messages In This Thread
Serching Vectors from Vehicle Quats - by Falco-Ger - 25.10.2011, 10:26
Re: Serching Vectors from Vehicle Quats - by Gamer_Z - 25.10.2011, 15:29
Re: Serching Vectors from Vehicle Quats - by Falco-Ger - 25.10.2011, 17:06
Re: Serching Vectors from Vehicle Quats - by Gamer_Z - 25.10.2011, 23:44
Re: Serching Vectors from Vehicle Quats - by Kar - 25.10.2011, 23:55
Re: Serching Vectors from Vehicle Quats - by Falco-Ger - 26.10.2011, 09:38
Re: Serching Vectors from Vehicle Quats - by Gamer_Z - 26.10.2011, 10:06
Re: Serching Vectors from Vehicle Quats - by Falco-Ger - 26.10.2011, 13:39
Re: Serching Vectors from Vehicle Quats - by Gamer_Z - 26.10.2011, 22:32
Re: Serching Vectors from Vehicle Quats - by Falco-Ger - 27.10.2011, 10:36

Forum Jump:


Users browsing this thread: 1 Guest(s)