示例#1
0
        public static void DrawWireDisc(Vector3 _center, Vector3 _normal, float _radius)
        {
            Vector3 _from = Vector3.Cross(_normal, Vector3.get_up());

            if ((double)((Vector3) ref _from).get_sqrMagnitude() < 1.0 / 1000.0)
            {
                _from = Vector3.Cross(_normal, Vector3.get_right());
            }
            LightLine.DrawWireArc(_center, _normal, _from, 360f, _radius);
        }
示例#2
0
 private static void DrawTwoShadedWireDisc(
     Vector3 _position,
     Vector3 _axis,
     Vector3 _from,
     float _degrees,
     float _radius)
 {
     LightLine.DrawWireArc(_position, _axis, _from, _degrees, _radius);
     Color     color1 = LightLine.m_Color;
     Color     color2 = color1;
     ref Color local  = ref color1;