Rotating the viewDirection of a character
Posted: Mon Jul 21, 2014 9:48 am
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
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