rust/hwphysics/src/lib.rs
changeset 15768 704f00889f3a
parent 15762 84c07aa94b61
child 15775 95402fa4e191
equal deleted inserted replaced
15767:a818a87fec52 15768:704f00889f3a
    46 
    46 
    47     #[inline]
    47     #[inline]
    48     pub fn delete_gear(&mut self, gear_id: GearId) {
    48     pub fn delete_gear(&mut self, gear_id: GearId) {
    49         self.data.remove_all(gear_id);
    49         self.data.remove_all(gear_id);
    50         self.collision.remove(gear_id);
    50         self.collision.remove(gear_id);
    51         self.time.cancel(gear_id);
    51         self.time.cancel_all(gear_id);
    52         self.allocator.free(gear_id)
    52         self.allocator.free(gear_id)
    53     }
    53     }
    54 
    54 
    55     pub fn step(&mut self, time_step: Millis, land: &Land2D<u32>) {
    55     pub fn step(&mut self, time_step: Millis, land: &Land2D<u32>) {
    56         let updates = if time_step == Millis::new(1) {
    56         let updates = if time_step == Millis::new(1) {