Rotate camera

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

Hi,

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

Coordinator
Dec 13, 2011 at 6: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.