Example #1
0
		public void LinkToParent(MdlObject p)
		{
			if (parent!=null) 
				UnlinkFromParent();

			p.AddChild(this);
		}
Example #2
0
		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;
		}