Ejemplo n.º 1
0
        public PlanePolygonBuilder(Plane plane)
        {
#if UNITY_EDITOR || UNITY_STANDALONE
            var rotation = Quaternion.FromToRotation(plane.normal, new Vector3(0, 0, -1));
#else
            var rotation = IdendityQuaternion;
#endif
            this.edgesToPolygon = new EdgesToPolygonBuilder(rotation);
        }