Vehicle Rotation Angle Detect - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vehicle Rotation Angle Detect (
/showthread.php?tid=605534)
Vehicle Rotation Angle Detect -
ProRakNet - 20.04.2016
Have a nice day.
Hi, I would like to identify the angle of tool rotation.
Is something like this possible, how can I do ?
Thanks..
Re: Vehicle Rotation Angle Detect -
iGetty - 20.04.2016
What do you mean by "Angle of tool"?
Re: Vehicle Rotation Angle Detect -
NaS - 21.04.2016
Do you want the Euler Angles (rx,ry,rz) from a vehicle?
If yes, look at the
QuaternionStuff Plugin.
Get the vehicle Rotation Quat (GetVehicleRotationQuat) and then use QuatToEuler.
pitch, yaw, roll is rx, ry, rz. You may have to invert all 3 (-pitch, -yaw, -roll) to get them right for vehicles.
Re: Vehicle Rotation Angle Detect -
ProRakNet - 21.04.2016
around the vehicle (RZ), 360 degree. that's it, very thanks
Re: Vehicle Rotation Angle Detect -
NaS - 21.04.2016
So you don't need rX and rY?
Use GetVehicleZAngle then :P
Re: Vehicle Rotation Angle Detect -
ProRakNet - 21.04.2016
Quote:
Originally Posted by NaS
So you don't need rX and rY?
GetVehicleZAngle then :P
|
yeah this was, RZ is actually just enough but Add to my library I have to be in the future.