diff options
Diffstat (limited to 'src/sim/sim_manager/utils.rs')
| -rw-r--r-- | src/sim/sim_manager/utils.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sim/sim_manager/utils.rs b/src/sim/sim_manager/utils.rs index c8c28d6..c72981f 100644 --- a/src/sim/sim_manager/utils.rs +++ b/src/sim/sim_manager/utils.rs @@ -1,8 +1,7 @@ use glam::IVec2; -use rapier2d::{dynamics::RigidBodyBuilder, math::Pose}; +use rapier2d::dynamics::RigidBodyBuilder; use crate::{ - config::CELLS_TO_METRES, content::materials::MaterialId, sim::{ cell::Cell, @@ -162,7 +161,7 @@ pub fn read_back_entities_from_world( sim.destroy_entity(entity_id); // and create a new entity for each component for component in components { - let r = old_pose.transform_vector(component.position / CELLS_TO_METRES); + let r = old_pose.transform_vector(component.position); let mut pose = old_pose; pose.translation += r; |
