Ejemplo n.º 1
0
        /// <summary>
        /// Creates a new Meneuver Node Gizmo if needed
        /// </summary>
        public static void CreateNodeGizmo(ManeuverNode node)
        {
            if (node.attachedGizmo != null)
            {
                return;
            }
            PatchRendering pr = FlightGlobals.ActiveVessel.patchedConicRenderer.FindRenderingForPatch(node.patch);

            node.AttachGizmo(MapView.ManeuverNodePrefab, FlightGlobals.ActiveVessel.patchedConicRenderer, pr);
        }
 public extern void AttachGizmo(GameObject gizmoPrefab, PatchedConicRenderer renderer, PatchRendering pr);
 public static bool ScreenCast(Vector3 screenPos, PatchRendering pr, out PatchedConics.PatchCastHit hitInfo, float orbitPixelWidth = 10f, double maxUT = -1, bool clampToPatch = false);