Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Aceeri committed Jul 29, 2023
1 parent cf6feeb commit 6de5877
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/plugin/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,7 @@ pub type ColliderComponents<'a> = (
pub fn apply_scale(
config: Res<RapierConfiguration>,
mut changed_collider_scales: Query<
(
&mut Collider,
&GlobalTransform,
Option<&ColliderScale>,
),
(&mut Collider, &GlobalTransform, Option<&ColliderScale>),
Or<(
Changed<Collider>,
Changed<GlobalTransform>,
Expand Down Expand Up @@ -170,10 +166,10 @@ pub fn apply_collider_user_changes(
co.set_position_wrt_parent(utils::transform_to_iso(&collider_position, scale));
}
} else if let Some(co) = context.colliders.get_mut(handle.0) {
co.set_position(utils::transform_to_iso(
&transform.compute_transform(),
scale,
))
co.set_position(utils::transform_to_iso(
&transform.compute_transform(),
scale,
))
}
}

Expand Down

0 comments on commit 6de5877

Please sign in to comment.