Setting an object rotation by the player's camera vector?
#2

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));
Reply


Messages In This Thread
Setting an object rotation by the player's camera vector? - by [XST]O_x - 04.09.2010, 14:39
Re: Setting an object rotation by the player's camera vector? - by Mauzen - 04.09.2010, 14:43
Re: Setting an object rotation by the player's camera vector? - by [XST]O_x - 04.09.2010, 14:55
AW: Setting an object rotation by the player's camera vector? - by Trooper[Y] - 14.07.2012, 14:03

Forum Jump:


Users browsing this thread: 2 Guest(s)