Ejemplo n.º 1
0
 /// <summary>
 /// Resets the MapCamera.
 /// </summary>
 /// <remarks>
 /// Called by Compass -> Button.OnClick event.
 /// </remarks>
 public void OnClickCompass()
 {
     // move the camera a bit to stop the camera spinning in Flyby.Update()
     camera.SetFocusTarget(camera.TargetPosition + new Vector3(camera.TargetDistance * .01f, 0, 0));
     camera.TargetAzimuth   = camera.RealAzimuth < 180f ? 0 : 360;
     camera.TargetElevation = 89;
 }