private void OnRenderObjectEvent() { if (/* Camera.current != Camera.main || */ MapView.MapIsEnabled) { return; } if (CameraManager.Instance.currentCameraMode == CameraManager.CameraMode.IVA && _linkedPart.vessel == FlightGlobals.ActiveVessel) { return; } if (_linkedPart.vessel != FlightGlobals.ActiveVessel) { if (Vector3.Distance(FlightGlobals.ActiveVessel.transform.position, _linkedPart.vessel.transform.position) > PhysicsGlobals.Instance.VesselRangesDefault.subOrbital.unload) { return; } } if (_centerOfLift.Total > CenterOfLiftCutoff) { DrawTools.DrawArrow(_centerOfLift.Position, _centerOfLift.Direction.normalized * calcArrowLength, XKCDColors.Blue); } }
private void OnGUI() { //if (_linkedPart.vessel.srf_velocity.magnitude > 0.1f) { DrawTools.NewFrame(); } }