Exemplo n.º 1
0
        public XElement ToXml()
        {
            var elm = new XElement("joint");

            elm.Add(Yaw.ToXml("yaw"), Pitch.ToXml("pitch"), Roll.ToXml("roll"));
            elm.Add(ParentOffset.ToXml("offset"));
            elm.Add(new XElement("length", Length));
            elm.Add(Size.ToXml("size"));
            elm.Add(Color.ToVector3().ToXml("color"));
            elm.Add(new XElement("visible", Visible));
            foreach (var item in Children)
            {
                elm.Add(item.ToXml());
            }
            return(elm);
        }