Beispiel #1
0
 /// <summary>Captures vessel and camera info.</summary>
 public VesselInfo(Vessel vessel, FlightCamera camera)
 {
     anchorPos      = vessel.transform.position;
     cameraPos      = camera.GetCameraTransform().position;
     cameraPivotPos = camera.GetPivot().position;
     cameraMode     = camera.mode;
 }
Beispiel #2
0
 /// <summary>Updates camera info from the provided instance.</summary>
 public void UpdateCameraFrom(FlightCamera camera)
 {
     cameraPos      = camera.GetCameraTransform().position;
     cameraPivotPos = camera.GetPivot().position;
     cameraMode     = camera.mode;
 }