Esempio n. 1
0
 OM.Rotation MouseChange()
 {
     OM.Rotation ret = new OM.Rotation() { Y = Mouse.GetState().X - Game.Window.ClientBounds.Width / 2, X = Mouse.GetState().Y - Game.Window.ClientBounds.Height / 2, Z = 0 };
     ret /= 10d;
     Mouse.SetPosition(Game.Window.ClientBounds.Width / 2, Game.Window.ClientBounds.Height / 2);
     return ret;
 }
Esempio n. 2
0
 public World()
 {
     CameraPosition = new Point() { X = 0, Y = 0, Z = 0 };
     CameraRotation = new Rotation() { X = 0, Y = 0, Z = 0 };
     Background = new Color() { R = 0, G = 0, B = 0 };
     DefaultCamera = true;
 }
Esempio n. 3
0
 public static Matrix Rotate(Rotation rot)
 {
     return RotateByX(rot.X) * RotateByY(rot.Y) * RotateByZ(rot.Z);
 }