equal
deleted
inserted
replaced
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, |