Rotating the viewDirection of a character

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Dechcaudron
Posts: 7
Joined: Thu Jul 10, 2014 8:52 am

Rotating the viewDirection of a character

Post 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
Dechcaudron
Posts: 7
Joined: Thu Jul 10, 2014 8:52 am

Re: Rotating the viewDirection of a character

Post 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
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Rotating the viewDirection of a character

Post by Norbo »

(I see you Norbo)
8)
Post Reply