changeset 15279 | 42b710b0f883 |
parent 15275 | 7446258fab98 |
child 15287 | 478d5372eb4a |
--- a/rust/hwphysics/src/collision.rs Thu Jul 25 21:59:20 2019 +0300 +++ b/rust/hwphysics/src/collision.rs Thu Jul 25 22:31:24 2019 +0300 @@ -147,4 +147,8 @@ fn add(&mut self, gear_id: GearId, gear_data: CollisionData) { self.grid.insert_static(gear_id, &gear_data.bounds); } + + fn remove(&mut self, gear_id: GearId) { + self.grid.remove(gear_id); + } }