Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to use mouse(pitch & yaw) and keyboard to rotate camera in WPF

$
0
0

Hi all, I'm currently working on a WPF game on Win7, with a terrain and an aircraft. The camera is bound to the aircraft and i can use keyboard WQSE to move it forward, left, back and right. Now I want to use keyboad 'A' & 'D' and mouse to rotate the camera so I can look around in the environment, anybody could give solutions? A tutorial of how to set pitch & yaw in detail or a demo would be very nice, cuz I'm new to C# and I don't want to use XNA. I know how to make it with OpenGL C++, but really don't know how to make it with C# in WPF. THX alot !!


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>