Example #1
0
        public void Create(SOMaterial useMaterial, fGameObject parent, int nLayer = -1)
        {
            if (curve == null)
            {
                curve = new DCurve3()
                {
                    Closed = closed
                }
            }
            ;

            curveObject = GameObjectFactory.CreatePolylineGO("preview_curve", null, useMaterial.RGBColor, 0.05f, LineWidthType.World);
            if (nLayer >= 0)
            {
                curveObject.SetLayer(nLayer);
            }

            bUpdatePending = true;

            parent.AddChild(curveObject, false);
        }