Page 1 of 1

Rotating the viewDirection of a character

Posted: Mon Jul 21, 2014 9:48 am
by Dechcaudron
Hello BEPU,

I'm currently in the process of making my character look around when the user moves the mouse, and I would need to rotate the viewDirection vector3 around the Down direction by Mouse X and around the Right Direction by Mouse Y. Am I missing any implemented feature or do I have to work out the mathematical vector rotation to achieve this? It kind of calls my attention that Vector3 does not implement any static method that provides rotation management, and that I can't find any posts in this forum related, so I guess there is something I am missing.

Regards,
Dechcaudron

Re: Rotating the viewDirection of a character

Posted: Mon Jul 21, 2014 10:35 am
by Dechcaudron
Hi guys,

I found the method I was looking for in the Quaternion struct. I am sorry I wasted your time (I see you Norbo) :)

Everyone have a nice day,
Dechcaudron

Re: Rotating the viewDirection of a character

Posted: Mon Jul 21, 2014 9:36 pm
by Norbo
(I see you Norbo)
8)