Skip to content

Commit

Permalink
Fix rotation sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
DSchroer committed Nov 17, 2022
1 parent 61f3e72 commit 37bc741
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions model_script_cli/src/editor/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ fn camera_system(mut commands: Commands) {
.insert(OrbitCameraBundle::new(
OrbitCameraController {
mouse_translate_sensitivity: Vec2::splat(0.05),
mouse_rotate_sensitivity: Vec2::splat(0.5),
..Default::default()
},
Vec3::new(100.0, 100.0, 100.0),
Expand Down
7 changes: 4 additions & 3 deletions model_script_cli/src/editor/xyz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ fn xyz_lines(
mut polylines: ResMut<Assets<Polyline>>,
) {
let end = 1_000_000.0;
let bias = 0.0001;
let color = Blueprint::black();
let origin = Vec3::new(0.0, 0.0, 0.0);

Expand All @@ -27,7 +28,7 @@ fn xyz_lines(
width: 2.0,
color,
perspective: false,
depth_bias: 0.1,
depth_bias: bias,
}),
..Default::default()
});
Expand All @@ -39,7 +40,7 @@ fn xyz_lines(
width: 2.0,
color,
perspective: false,
depth_bias: 0.1,
depth_bias: bias,
}),
..Default::default()
});
Expand All @@ -51,7 +52,7 @@ fn xyz_lines(
width: 2.0,
color,
perspective: false,
depth_bias: 0.1,
depth_bias: bias,
}),
..Default::default()
});
Expand Down

0 comments on commit 37bc741

Please sign in to comment.