04.09.2010, 14:43
Yeah, this is quite annoying, because object rotation and stuff like atan do not always use the same scales.
It should work like this, took me a while to get the right offsets, but i needed it for a fs:
SetObjectRot(object, asin(z_vector), 0.0, 360 - atan2(x_vector, y_vetor));
It should work like this, took me a while to get the right offsets, but i needed it for a fs:
SetObjectRot(object, asin(z_vector), 0.0, 360 - atan2(x_vector, y_vetor));