Example #1
0
        /// <summary>
        /// Take care of updating everything.
        /// </summary>
        /// <param name="seatID"></param>
        /// <param name="activeKerbal"></param>
        private void UpdateCameras(int seatID, Kerbal activeKerbal)
        {
            InternalCamera.Instance.SetFOV(seats[seatID].fov);
            InternalCamera.Instance.maxRot   = seats[seatID].maxRot;
            InternalCamera.Instance.maxPitch = seats[seatID].maxPitch;
            InternalCamera.Instance.minPitch = seats[seatID].minPitch;

            RPMVesselComputer comp = null;

            if (RPMVesselComputer.TryGetInstance(vessel, ref comp))
            {
                comp.SetKerbalVisible(activeKerbal, seats[seatID].hideKerbal);
            }

            oldSeat = seatID;
        }