Ejemplo n.º 1
0
            public static StructurePart GetStructurePart(Part part, Part root)
            {
                StructurePart structurePart = new StructurePart
                {
                    Id        = part.flightID,
                    Name      = part.name,
                    LinkCount = RmmUtil.GetLinkedParts(part).Count,
                    Position  = root.transform.InverseTransformPoint(part.transform.position)
                };

                return(structurePart);
            }