kOS.Suffixed.VectorRenderer.KOSUpdate C# (CSharp) 메소드

KOSUpdate() 공개 메소드

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
리턴 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();
            }
        }