コード例 #1
0
        public void CameraRotate(Vector3 Angles)
        {
            Angles.X %= 360;
            Angles.Y %= 360;
            Angles.Z %= 360;
            Angles.X  = QuickMaths.DegreeToRadian(Angles.X);
            Angles.Y  = QuickMaths.DegreeToRadian(Angles.Y);
            Angles.Z  = QuickMaths.DegreeToRadian(Angles.Z);
            rot       = Angles;
            Quaternion quaternion = new Quaternion(rot.X, rot.Y, rot.Z);

            UpdateTarget(quaternion);
            CalculateCamMatrix();
        }
コード例 #2
0
 public void ReloadProjections(float asp)
 {
     projection = Matrix4.CreatePerspectiveFieldOfView(QuickMaths.DegreeToRadian(_FOV), asp, .1f, renderDistance);
     ortho      = Matrix4.CreateOrthographic(10f, 10f, 100f, -100f);
 }