Sign in to follow this  
israel

Rotation using quaternions in c#

Recommended Posts

I’m writing an application using C# and directX. I want to rotate an object (accumulating the rotations) using the keyboard but I’m not getting anywhere. I’ve seen a couple of tutorials, but I still don’t get it (I’m a directX virgin). Does anybody have the code or a link to an example? Thanx [Edited by - israel on February 8, 2005 12:30:26 PM]

Share this post


Link to post
Share on other sites
We probably need more info to be helpful. What have you tried so far? Can you post some code? If you can describe your problem more specifically I'm sure someone will be able to help.

Share this post


Link to post
Share on other sites
I read an article about “A simple quaternion-based camera”, and I think that’s what I need (or something that gives the same effect). I believe I need to make a quaternion of my current view, then rotate this quaternion depending on the movement of my mouse or keyboard (up, down, left or right) and then use this quaternion as my view. The problem is that I don’t know exactly how to implement that.

Thanx

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this