Fixed 'lag behind' bug, updated for KSP 1.1
Fixed 'lag behind' bug, updated for KSP 1.1

--- a/QuantumStrut.cs
+++ b/QuantumStrut.cs
@@ -212,6 +212,24 @@
 			return false;
 		}
 
+		public void Update()
+		{
+			if (strut != null && !strut.isDestroyed)
+			{
+				if (PowerConsumption == 0 || (Util.GetEnergy(part.vessel) > PowerConsumption * TimeWarp.fixedDeltaTime && part.RequestResource(
+					"ElectricCharge",
+					PowerConsumption * TimeWarp.fixedDeltaTime
+				) > 0))
+				{
+					strut.Update();
+				}
+				else
+				{
+					strut.Destroy();
+				}
+			}
+		}
+
 		public void FixedUpdate()
 		{
 			Events["ActivateStrut"].guiActiveEditor = Events["ActivateStrut"].active = !IsEnabled;
@@ -221,17 +239,7 @@
 			{
 				I = I + 1 % 255;
 
-				if (strut != null && !strut.isDestroyed)
-				{
-					if (PowerConsumption == 0 || (Util.GetEnergy(part.vessel) > PowerConsumption * TimeWarp.fixedDeltaTime && part.RequestResource(
-						    "ElectricCharge",
-						    PowerConsumption * TimeWarp.fixedDeltaTime
-					    ) > 0))
-						strut.Update();
-					else
-						strut.Destroy();
-				}
-				else
+				if (strut == null || strut.isDestroyed)
 				{
 					if ((I % 10) == 0)
 					{
@@ -348,7 +356,7 @@
 				lineObj = new GameObject();
 
 				lr = lineObj.AddComponent<LineRenderer>();
-				lr.useWorldSpace = true;
+				lr.useWorldSpace = false;
 
 				lr.material = material;
 				lr.SetColors(startColor, endColor);

file:a/Strut.cs -> file:b/Strut.cs
--- a/Strut.cs
+++ b/Strut.cs
@@ -171,7 +171,7 @@
 				LineObj.name = "quantumstrut";
 
 				lr = LineObj.AddComponent<LineRenderer>();
-				lr.useWorldSpace = true;
+				lr.useWorldSpace = false;
 
 				Material = QuantumStrut.LaserMaterial;
 				StartColor = Color.white;