private void Update() { VehicleControl.UpdateControl(); #region Debug if (Debug.DebugEnabled) { DebugManager.instance.SetOverlayItem(new OverlayItem("Speed", Rb.velocity.magnitude, ": ", " m/s"), 0); foreach (VehiclePart part in Parts) { if (part is IAerodynamicPart) { (part as IAerodynamicPart).Aerodynamics.DrawPartAeorynamicForces(part); } } } #endregion }
private void Update() { if (Debug._testFlightEnabled) { VehicleControl.UpdateControl(); } CalculateMass(); if (Parts.Count == 0) { Rb.isKinematic = true; } #region Debug if (Debug.DebugEnabled) { DebugManager.instance.SetOverlayItem(new OverlayItem("Speed", Rb.velocity.magnitude, ": ", " m/s"), 0); } #endregion }