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 authored and hannobraun committed May 30, 2022
1 parent c85c096 commit a0c47f9
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 a0c47f9

Please sign in to comment.