08.11.2013, 04:43
Try This :-
First of all,
Quaternion Converter Include:
Pastebin for Quaternion Converter
(NOTE: Make sure you open the same PAWNO that contains all your stuff)
Download it here,
Pastebin for Quaternion Converter
Installation:
Takes the quaternion values specified by quat_w, quat_x, quat_y and quat_z, then converts them into roll, pitch and yaw (respectively) and saves them into the variables specified by x, y and z.
Takes the quaternion values specified by quat_w, quat_x, quat_y and quat_z, then converts them into roll (respectively) and saves them into the variables specified by roll.
Takes the quaternion values specified by quat_w, quat_x, quat_y and quat_z, then converts them into pitch and saves them into the variables specified by pitch.
Takes the quaternion values specified by quat_w, quat_x, quat_y and quat_z, then converts them into yaw and saves them into the variable specified by yaw.
EDIT :-
Tell me if i am wrong
First of all,
Quaternion Converter Include:
Pastebin for Quaternion Converter
(NOTE: Make sure you open the same PAWNO that contains all your stuff)
Download it here,
Pastebin for Quaternion Converter
Installation:
- Copy the whole include codes in Notepad, Wordpad, etc..
- Save it as "include's name.inc", and Save it in "PAWNO > include".
- Open your Gamemode Script using PAWNO Compiler.
- Add "#include <include's name>" at the Top of your Gamemode Script.
- Compile it, Save it, and Finish.
- Download the Include File, Copy it.
- Paste it in "PAWNO > include".
- Open your Gamemode Script using PAWNO Compiler.
- Add "#include <include's name>" at the Top of your Gamemode Script.
- Compile it, Save it, and Finish.
Код:
stock QuaternionToYawPitchRoll(Float:quat_w,Float:quat_x,Float:quat_y,Float:quat_z,&Float:x,&Float:y,&Float:z)
Код:
stock QuaternionGetRoll(Float:quat_w,Float:quat_x,Float:quat_y,Float:quat_z,&Float:roll)
Код:
stock QuaternionGetPitch(Float:quat_w,Float:quat_x,Float:quat_y,Float:quat_z,&Float:pitch)
Код:
stock QuaternionGetYaw(Float:quat_w,Float:quat_x,Float:quat_y,Float:quat_z,&Float:yaw)
EDIT :-
Tell me if i am wrong