public void LinkToParent(MdlObject p) { if (parent!=null) UnlinkFromParent(); p.AddChild(this); }
public MdlObject Clone() { MdlObject cp = new MdlObject(); if (polyMesh != null) cp.polyMesh = polyMesh.Clone(); foreach (MdlObject o in childs) cp.AddChild(o.Clone()); cp.position = position; cp.rotation = rotation; cp.scale = scale; cp.name = name; return cp; }