SA-MP Forums Archive
GetVehicleRotationQuat for car rotation - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GetVehicleRotationQuat for car rotation (/showthread.php?tid=182386)



GetVehicleRotationQuat for car rotation - regdude - 10.10.2010

Hi!
If I understood right then GetVehicleRotationQuat can be used to determine if car is upside down.
So I can assume that it can be used for determining the cars rotation (other then Z axis).
For example, if the car is on 2 wheels, if the car is on 2 side wheels etc.
I think I saw a script for this back when 0.3b was in RC, but now the topic seems to be deleted.
I want to use these angles to correct the SetVehicleVelocity for upward direction.
Can anyone help?