Пример #1
0
        // Token: 0x06000F1C RID: 3868 RVA: 0x00066CB4 File Offset: 0x000650B4
        public static void arrow(Vector3 normal, Vector3 view)
        {
            GLUtility.line(Vector3.zero, normal);
            Vector3 a = normal * 0.75f;
            Vector3 b = Vector3.Cross(view, normal) * 0.1f;

            GLUtility.line(normal, a - b);
            GLUtility.line(normal, a + b);
        }
Пример #2
0
        public static void arrow(Vector3 normal, Vector3 view)
        {
            GLUtility.line(Vector3.zero, normal);
            Vector3 vector  = normal * 0.75f;
            Vector3 vector2 = Vector3.Cross(view, normal) * 0.1f;

            GLUtility.line(normal, vector - vector2);
            GLUtility.line(normal, vector + vector2);
        }
Пример #3
0
        // Token: 0x06000F1E RID: 3870 RVA: 0x00066D28 File Offset: 0x00065128
        public static void boxWireframe(Vector3 center, Vector3 size)
        {
            Vector3 vector = size / 2f;

            GLUtility.line(center + new Vector3(-vector.x, -vector.y, -vector.z), center + new Vector3(vector.x, -vector.y, -vector.z));
            GLUtility.line(center + new Vector3(-vector.x, -vector.y, -vector.z), center + new Vector3(-vector.x, -vector.y, vector.z));
            GLUtility.line(center + new Vector3(-vector.x, -vector.y, vector.z), center + new Vector3(vector.x, -vector.y, vector.z));
            GLUtility.line(center + new Vector3(vector.x, -vector.y, -vector.z), center + new Vector3(vector.x, -vector.y, vector.z));
            GLUtility.line(center + new Vector3(-vector.x, -vector.y, -vector.z), center + new Vector3(-vector.x, vector.y, -vector.z));
            GLUtility.line(center + new Vector3(vector.x, -vector.y, -vector.z), center + new Vector3(vector.x, vector.y, -vector.z));
            GLUtility.line(center + new Vector3(-vector.x, -vector.y, vector.z), center + new Vector3(-vector.x, vector.y, vector.z));
            GLUtility.line(center + new Vector3(vector.x, -vector.y, vector.z), center + new Vector3(vector.x, vector.y, vector.z));
            GLUtility.line(center + new Vector3(-vector.x, vector.y, -vector.z), center + new Vector3(vector.x, vector.y, -vector.z));
            GLUtility.line(center + new Vector3(-vector.x, vector.y, -vector.z), center + new Vector3(-vector.x, vector.y, vector.z));
            GLUtility.line(center + new Vector3(-vector.x, vector.y, vector.z), center + new Vector3(vector.x, vector.y, vector.z));
            GLUtility.line(center + new Vector3(vector.x, vector.y, -vector.z), center + new Vector3(vector.x, vector.y, vector.z));
        }