Rotation using quaternions in c#

Started by
1 comment, last by israel 19 years, 2 months ago
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]
Advertisement
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.
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

This topic is closed to new replies.

Advertisement