示例#1
0
            /// <summary>
            /// Updates the wiresphere
            /// </summary>
            void OnGUI()
            {
                if (!MapView.MapIsEnabled)
                {
                    return;
                }

                // Draw
                GLTools.DrawOrbit(0, 0, body.sphereOfInfluence, 0, 0, 0, 0, body, body.orbitDriver.Renderer.orbitColor, GLTools.Style.DASHED);
                GLTools.DrawOrbit(90, 0, body.sphereOfInfluence, 0, 0, 0, 0, body, body.orbitDriver.Renderer.orbitColor, GLTools.Style.DASHED);
                GLTools.DrawOrbit(90, 0, body.sphereOfInfluence, 90, 0, 0, 0, body, body.orbitDriver.Renderer.orbitColor, GLTools.Style.DASHED);
            }
示例#2
0
 void OnPostRender()
 {
     GLTools.drawBoundingBox(LevelController.Instance.selectedElementBounds, matLineBounds);
 }