Пример #1
0
        protected override void drawDebug(int pointers)
        {
            base.drawDebug(pointers);

            if (!DebugMode)
            {
                return;
            }
            switch (pointers)
            {
            case 1:
                if (projection == ProjectionType.Global || projection == ProjectionType.Object)
                {
                    GLDebug.DrawPlaneWithNormal(debugID + 3, cachedTransform.position, RotationAxis, 4f, GLDebug.MULTIPLY, float.PositiveInfinity);
                }
                break;

            default:
                if (projection == ProjectionType.Global || projection == ProjectionType.Object)
                {
                    GLDebug.DrawPlaneWithNormal(debugID + 3, cachedTransform.position, RotationAxis, 4f, GLDebug.MULTIPLY, float.PositiveInfinity);
                }
                break;
            }
        }
        protected override void drawDebug(Vector2 point1, Vector2 point2)
        {
            base.drawDebug(point1, point2);

            if (!DebugMode)
            {
                return;
            }
            GLDebug.DrawPlaneWithNormal(debugID + 3, cachedTransform.position, RotationAxis, 1f, GLDebug.MULTIPLY, float.PositiveInfinity);
        }