rust/hwphysics/src/lib.rs
changeset 15266 b58f98bbc120
parent 14716 8e74d4eb89f5
child 15270 7446258fab98
equal deleted inserted replaced
15265:07e909ba4203 15266: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,