how start using a camera

Jul 10, 2010 at 12:35 AM

hi i want know how i can add a camera and navigate with it?

Jul 10, 2010 at 1:47 AM
Edited Jul 10, 2010 at 1:48 AM

The easiest way is to use a FirstPersonControlledCamera3D, this class is in Xen.Ex.Camera in Xen 1.8, and in Xen.Camera in the 2.0 alpha.
This class is great for debugging, however if you are after more manual control then you can simply create a Camera3D and modify it's camera matrix (which is the same as any world matrix you'd use)

You will find FirstPersonControlledCamera3D is used in a number of the tutorials, so searching for it should help out. It automatically hooks into the PlayerInput system, so it'll be WASD/mouse on the PC and use the gamepad on the 360.