Rotate camera

Dec 12, 2011 at 2:03 PM
Edited Dec 12, 2011 at 2:20 PM


how can i rotate the camera in per code?

i can't find any methods for that in CameraController.

(or schould i use wpf's RotateTransform3D)

greetz chris

Dec 13, 2011 at 5:46 PM

you can use the "AddRotateForce" method - that's what the keyboard bindings are using.

If you need more custom rotations, I suggest you create a Quaternion and do the rotations on the LookDirection and Camera Position.

You find the camera rotation transformations in the RotateHandler class.