Skip to content

Commit e20ae4c

Browse files
committed
Cleanup
1 parent c28c3e2 commit e20ae4c

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/MicroEngineer/MicroEngineerPlugin.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,6 @@ private System.Collections.IEnumerator DoFlightUpdate()
119119

120120
public void Update()
121121
{
122-
var activeVessel = GameManager.Instance?.Game?.ViewController?.GetActiveVehicle(true)?.GetSimVessel(true);
123-
if (activeVessel != null)
124-
{
125-
var x = activeVessel.CenterOfMass;
126-
var y = activeVessel.LabelPosition;
127-
var z = activeVessel.gravityForPos;
128-
var i = activeVessel.RevealMass();
129-
var j = activeVessel.CurrentCoM;
130-
}
131-
132122
// Keyboard shortcut for opening the UI
133123
if ((Settings.EnableKeybinding?.Value ?? false) &&
134124
(Settings.Keybind1.Value != KeyCode.None ? Input.GetKey(Settings.Keybind1.Value) : true) &&

src/MicroEngineer/Utilities/OrbitExtensions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace MicroEngineer.Utilities;
66

7+
/// <summary>
8+
/// Taken mostly from Node Manager: https://github.com/schlosrat/NodeManager/blob/master/src/NodeManager/MJ/OrbitExtensions.cs
9+
/// </summary>
710
public static class OrbitExtensions
811
{
912
public static double NextClosestApproachTime(

0 commit comments

Comments
 (0)