Пример #1
0
 private static ICamera CreateCamera( CommandUser user )
 {
     SphereCamera camera = new SphereCamera( Constants.HalfPi, Constants.Pi / 4, 10 );
     new SphereCameraController( user, camera );
     return camera;
 }
 /// <summary>
 /// Setup constructor. Sets the user that controls the camera
 /// </summary>
 public SphereCameraController( ICommandUser user, SphereCamera camera )
 {
     user.CommandTriggered += HandleCameraCommand;
     Camera = camera;
 }