Vector 0/0/0 = 180/180/180 ?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Barratator
Posts: 30
Joined: Fri Jan 08, 2010 3:30 pm

Vector 0/0/0 = 180/180/180 ?

Post by Barratator »

Hello,
i have a small problems with the irrlicht-vectors.
I think, the vector 0/0/0 is the same like 180/180/180.
Small example from c4d: http://www.youtube.com/watch?v=febEaIjXIyY

In this case, my vector only have the value 0 for X and Z, only Y is rotating, but sometimes irrlicht "translate" the vector from 0/.../0 to 180/.../180. The Y-value is then of course not the same i inputed.
So I can't read only the Y-value to get the horizontal viewing direction of the object.
Is there any method or formula the get the "real" viewing direction from 0-359° ?

I hope you understand my poor english skills

Thanks!
Bastian :D :o
serengeor
Posts: 1712
Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania

Re: Vector 0/0/0 = 180/180/180 ?

Post by serengeor »

I think the rotation values aren't from 0 to 359 but from -180 to 180.
Working on game: Marrbles (Currently stopped).
Barratator
Posts: 30
Joined: Fri Jan 08, 2010 3:30 pm

Post by Barratator »

Yes, thats may be. But it doesn't solve the problem ;)
Post Reply