Ejemplo n.º 1
0
        public void UpdateFromAgk()
        {
            FOV        = Agk.GetCameraFOV(1);
            Position.X = Agk.GetCameraX(1);
            Position.Y = Agk.GetCameraY(1);
            Position.Z = Agk.GetCameraZ(1);
            Rotation.X = Agk.GetCameraAngleX(1);
            Rotation.Y = Agk.GetCameraAngleY(1);
            Rotation.Z = Agk.GetCameraAngleZ(1);

            //TODO: reverse calc orbit/target values if bound

            //ProjectionMatrix = AGKMatrix4.Perspective(0.25f * (float)Math.PI, AspectRatio, 1.0f, 1000.0f);
            ProjectionMatrix = AGKMatrix4.Perspective(FOV, App.Config.Screen.AspectRatio, Near, Far);
        }