Skip to content

Commit

Permalink
Merge pull request #644 from chrisprice/fix-rotation
Browse files Browse the repository at this point in the history
Fix camera rotation around focus point
  • Loading branch information
hannobraun authored May 30, 2022
2 parents c85c096 + a0c47f9 commit 96c7f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/fj-viewer/src/input/rotation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl Rotation {

let inv = trans.inverse();

camera.rotation = trans * rot_y * rot_x * inv * camera.rotation;
camera.rotation = camera.rotation * trans * rot_y * rot_x * inv;
}
}
}

0 comments on commit 96c7f2c

Please sign in to comment.