rust/hwphysics/src/lib.rs
changeset 15271 b58f98bbc120
parent 14721 8e74d4eb89f5
child 15275 7446258fab98
equal deleted inserted replaced
15270:07e909ba4203 15271:b58f98bbc120
    46         }
    46         }
    47     }
    47     }
    48 
    48 
    49     pub fn step(&mut self, time_step: FPNum, land: &Land2D<u32>) {
    49     pub fn step(&mut self, time_step: FPNum, land: &Land2D<u32>) {
    50         let updates = self.physics.process(time_step);
    50         let updates = self.physics.process(time_step);
    51         self.collision.process(land, &updates);
    51         let collision = self.collision.process(land, &updates);
    52     }
    52     }
    53 
    53 
    54     pub fn add_gear_data<T>(&mut self, gear_id: GearId, data: T)
    54     pub fn add_gear_data<T>(&mut self, gear_id: GearId, data: T)
    55     where
    55     where
    56         T: GearData,
    56         T: GearData,