public void ClearShapes() { if (this.shapes == null) return; foreach (ShapeInfo shape in this.shapes) { if (this.body != null) shape.DestroyFixture(this.body, false); shape.Parent = null; } this.shapes.Clear(); }