| 
						
						
						
					 | 
					 | 
					@ -1,6 +1,7 @@ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					use bevy::{input::mouse::AccumulatedMouseMotion, prelude::*, window::CursorGrabMode}; | 
					 | 
					 | 
					 | 
					use bevy::{input::mouse::AccumulatedMouseMotion, prelude::*, window::CursorGrabMode}; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					const MOVEMENT_SPEED: f32 = 0.15; | 
					 | 
					 | 
					 | 
					const MOVEMENT_SPEED: f32 = 0.25; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					const SPRINT_MODIFIER: f32 = 5.; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					const MOUSE_SENSITIVITY: Vec2 = Vec2::new(0.002, 0.002); | 
					 | 
					 | 
					 | 
					const MOUSE_SENSITIVITY: Vec2 = Vec2::new(0.002, 0.002); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					pub struct CameraControllerPlugin; | 
					 | 
					 | 
					 | 
					pub struct CameraControllerPlugin; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -97,7 +98,7 @@ fn camera_keyboard_translation( | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    let mut movement = input * MOVEMENT_SPEED; | 
					 | 
					 | 
					 | 
					    let mut movement = input * MOVEMENT_SPEED; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    if key.pressed(KeyCode::ShiftLeft) { | 
					 | 
					 | 
					 | 
					    if key.pressed(KeyCode::ShiftLeft) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        movement *= 4.; | 
					 | 
					 | 
					 | 
					        movement *= SPRINT_MODIFIER; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    if movement.x != 0. { | 
					 | 
					 | 
					 | 
					    if movement.x != 0. { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |