Skip to content

Commit

Permalink
Fix camera rotation around focus point
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisprice committed May 29, 2022
1 parent d2dd108 commit 04cff0c
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 04cff0c

Please sign in to comment.