Skip to content

Commit

Permalink
Fix compound collider debug rendering position
Browse files Browse the repository at this point in the history
  • Loading branch information
Jondolf committed Aug 4, 2023
1 parent 292f85d commit 53f96de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/debug/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl<'w, 's> PhysicsDebugRenderer<'w, 's> {
}
TypedShape::Compound(s) => {
for (sub_pos, shape) in s.shapes() {
let pos = Position(position.0 + Vector::from(sub_pos.translation));
let pos = Position(position.0 + rotation.rotate(sub_pos.translation.into()));
#[cfg(feature = "2d")]
let rot = *rotation + Rotation::from_radians(sub_pos.rotation.angle());
#[cfg(feature = "3d")]
Expand Down

0 comments on commit 53f96de

Please sign in to comment.