예제 #1
0
파일: FreeCamera.cs 프로젝트: d3x0r/xperdex
        public FreeCamera(MyBoundingBox box, float AspectRatio)
        {
            this.box = box;
            //this.game = game;
            this.AspectRatio = AspectRatio;

            ProjectionMatrix = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4,
                                                                   AspectRatio, 1f, 4000f);
        }
예제 #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);
        }