public void RemovePhysical(Physics phy) { phy.SetMap(null); lock (_objects) { _objects.Remove(phy); } }
public void AddPhysical(Physics phy) { phy.SetMap(this); lock (_objects) { _objects.Add(phy); } }