• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Question] Vehicle rotation | help with this?
#5
They are absolutely right. The truth is that he had been out of SA-MP for like 5 years and had no idea of the existence of that include.



I have checked the results of both methods, comparing them with AttachObjectToVehicle, and they both seem to have the same result.



https://youtu.be/vSZyMilgcuU



But I have to say one thing in favor of i_quat, is that it is more efficient, and requires less calculations. Even building the up vector is 1000 times faster. What I had done was to obtain 2 times the rotation, one with up.z = 1.0 and another with up.z = -1.0, then compare which of the two results is equal to the right and front vectors. The difference is brutal.



Anyway, I'm going to post the include, in case it can help someone to have these matrix functions in Pawn.



Once again, Sorry for my English.
  Reply


Messages In This Thread
Vehicle rotation | help with this? - by Leonardo - 2021-01-26, 01:05 PM
RE: Vehicle rotation | help with this? - by Leonardo - 2021-01-27, 02:53 PM

Forum Jump: