protected override void OnDispose(bool disposing) { if (disposing) { foreach (var item in _nodes) { item.Dispose(); } foreach (var item in _techniques) { item.Dispose(); } if (_physics != null) { _physics.Dispose(); } } }