21.01.2014, 17:29
You're overwriting the TRY variable each time you pass it to the function so in actual fact you'll only get the Z rotation. In front of an object can seem like it's behind for you... if that makes sense.
EDIT:
Think of x as the object
i X
the front could be to the right of this page if you was standing in position i whereas in the following example:
X i
The front would seem like it was in fact behind the object in your perspective.
I would recommend using a rotation of just 0.0 unless there is an actual way of getting the front of a object(not that I know of).
Yes, do what Pottus said. That way it'll always be in front of you.
EDIT:
Think of x as the object
i X
the front could be to the right of this page if you was standing in position i whereas in the following example:
X i
The front would seem like it was in fact behind the object in your perspective.
I would recommend using a rotation of just 0.0 unless there is an actual way of getting the front of a object(not that I know of).
Yes, do what Pottus said. That way it'll always be in front of you.