Inline redundant variable

This commit is contained in:
Hanno Braun 2024-11-14 17:48:30 +01:00
parent a9debaccb3
commit c97cd9ae2b

View File

@ -15,10 +15,9 @@ impl Rotation {
// the model rotates not the camera, so invert the transform
let camera_rotation = camera.rotation.inverse();
let up_vector = camera_rotation.up();
let rotation = Transform::rotation(camera_rotation.right() * angle_x)
* Transform::rotation(up_vector * angle_y);
* Transform::rotation(camera_rotation.up() * angle_y);
let transform = camera.camera_to_model()
* rotate_around