public override void removeCollection(string name)
 {
     if (shapes.ContainsKey(name))
     {
         BulletShapeCollection collection = shapes[name];
         shapes.Remove(name);
         collection.Dispose();
     }
     else
     {
         Logging.Log.Default.sendMessage("Attempted to remove a shape " + name + " that does not exist.  No changes made.", Logging.LogLevel.Error, "Physics");
     }
 }
 public bool addCollection(BulletShapeCollection collection)
 {
     if (shapes.ContainsKey(collection.Name))
     {
         Log.Default.sendMessage("Attempted to add a shape with a duplicate name " + collection.Name + " ignoring the new shape.", Logging.LogLevel.Error, "Physics");
         return(false);
     }
     else
     {
         shapes.Add(collection.Name, collection);
         collection.SourceLocation = CurrentLoadingLocation;
         CurrentLoadingLocation.addShape(collection.Name);
         return(true);
     }
 }