Quaternion bug
#1

I can't get valid vehicle quat data after it (re)spawns, but can before I enter it

This is my test code:
Код:
GetVehicleRotationQuat(vehicleid, w, x, y, z);
printf("%f, %f, %f, %f", w, x, y, z);
gives me this results before I enter this vehicle:
Код:
/0)-),/(.,.000000, 0.000000, 0.000000, -/0)-),/(.,.000000
and after I enter it (normal data):
Код:
0.707106, 0.000211, -0.000211, -0.707106
Reply
#2

Yes this function is not very reliable.
Reply
#3

There is no data if noone is sitting in, and sometimes the first few checks after entering do not work and lead to strange behaviour.

Looks like the result of an array index out of bounds error, weird data getting out.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)