kOS.Suffixed.VectorRenderer.KOSUpdate C# (CSharp) Method

KOSUpdate() public method

Move the origin point of the vector drawings to move with the current ship, whichever ship that happens to be at the moment, and move to wherever that ship is within its local XYZ world (which isn't always at (0,0,0), as it turns out.):
public KOSUpdate ( double deltaTime ) : void
deltaTime double
return void
        public void KOSUpdate(double deltaTime)
        {
            if (line == null || hat == null) return;
            if (!enable) return;

            GetCamData();
            GetShipCenterCoords();
            PutAtShipRelativeCoords();

            SetLayer(isOnMap ? MAP_LAYER : FLIGHT_LAYER);

            var mapChange = isOnMap != prevIsOnMap;
            var magnitudeChange = prevCamLookVec.magnitude != camLookVec.magnitude;
            if (mapChange || magnitudeChange)
            {
                RenderPointCoords();
                LabelPlacement();
            }
            else if (prevCamRot != camRot)
            {
                LabelPlacement();
            }
        }