/// <summary> /// Attaches a movable object to this scene node /// </summary> /// <param name="movObj">IMovable instance</param> public void AttachObject(IMovable movObj) { if (_movablesByName.ContainsKey(movObj.Name)) { _movablesByName.Remove(movObj.Name); _movablesList.Remove(movObj); } _movablesByName.Add(movObj.Name, movObj); _movablesList.Add(movObj); movObj.AttachParent(this); RequireUpdate(); }