diff -r 64b0a5cead86 -r 44b49f255e31 rust/hwphysics/src/lib.rs --- a/rust/hwphysics/src/lib.rs Tue Jan 25 23:46:11 2022 +0300 +++ b/rust/hwphysics/src/lib.rs Thu Jan 27 03:51:13 2022 +0300 @@ -4,7 +4,7 @@ mod grid; pub mod physics; -use integral_geometry::Size; +use integral_geometry::PotSize; use land2d::Land2D; use crate::{ @@ -22,7 +22,7 @@ } impl World { - pub fn new(world_size: Size) -> Self { + pub fn new(world_size: PotSize) -> Self { let mut data = GearDataManager::new(); PhysicsProcessor::register_components(&mut data); CollisionProcessor::register_components(&mut data); @@ -72,12 +72,12 @@ World, }; use fpnum::{fp, FPNum, FPPoint}; - use integral_geometry::Size; + use integral_geometry::PotSize; use land2d::Land2D; #[test] fn data_flow() { - let world_size = Size::new(2048, 2048); + let world_size = PotSize::new(2048, 2048).unwrap; let mut world = World::new(world_size); let gear_id = world.new_gear().unwrap();