Ejemplo n.º 1
0
        public FreeCamera(MyBoundingBox box, float AspectRatio)
        {
            this.box = box;
            //this.game = game;
            this.AspectRatio = AspectRatio;

            ProjectionMatrix = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4,
                                                                   AspectRatio, 1f, 4000f);
        }
Ejemplo n.º 2
0
        public FixedCamera(MyBoundingBox box, float AspectRatio)
        {
            //this.game = game;
            this.box         = box;
            this.AspectRatio = AspectRatio;
            PositionOffset   = new Vector3(0, -10.0f, 2.5f);

            ProjectionMatrix = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4,
                                                                   AspectRatio, 1f, 4000f);
        }