rust/hwphysics/src/collision.rs
changeset 15279 42b710b0f883
parent 15275 7446258fab98
child 15287 478d5372eb4a
equal deleted inserted replaced
15278:bfd185ad03e7 15279:42b710b0f883
   145 
   145 
   146 impl GearDataProcessor<CollisionData> for CollisionProcessor {
   146 impl GearDataProcessor<CollisionData> for CollisionProcessor {
   147     fn add(&mut self, gear_id: GearId, gear_data: CollisionData) {
   147     fn add(&mut self, gear_id: GearId, gear_data: CollisionData) {
   148         self.grid.insert_static(gear_id, &gear_data.bounds);
   148         self.grid.insert_static(gear_id, &gear_data.bounds);
   149     }
   149     }
       
   150 
       
   151     fn remove(&mut self, gear_id: GearId) {
       
   152         self.grid.remove(gear_id);
       
   153     }
   150 }
   154 }