public void AddChild(SceneNode child) { if (child.Parent != null) throw new Exception("Ce noeud est déjà attaché à un autre Parent"); child.Parent = this; this.Children.Add(child); }
public SceneGraph() { Root = new SceneNode(); }
public void AttachToNode(SceneNode parent) { parent.AddChild(this); }