Beispiel #1
0
 public Game1()
 {
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     _kinect            = new Kinect();
     _vertexCountInLine = 20;
     _vertexStep        = 20f;
     _cameraPos         = new Vector3(-600, 0, 0);
     _cameraTarget      = Vector3.Zero;
     _view       = Matrix.CreateLookAt(_cameraPos, _cameraTarget, Vector3.Up);
     _projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4, Window.ClientBounds.Width / (float)Window.ClientBounds.Height, 1, 1500);
 }
 public ModelMapper(Kinect kinect, ref Model model)
 {
     _kinect = kinect;
     _model  = model;
 }