cleanup
This commit is contained in:
		
							parent
							
								
									54a1f64e60
								
							
						
					
					
						commit
						2836b2926d
					
				@ -1,11 +1,11 @@
 | 
				
			|||||||
use std::{f32::consts::PI, time::Duration};
 | 
					use std::{f32::consts::PI, time::Duration};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use bevy::prelude::*;
 | 
					use bevy::prelude::*;
 | 
				
			||||||
use bevy_inspector_egui::{egui::plot::Orientation, Inspectable, RegisterInspectable};
 | 
					use bevy_inspector_egui::{Inspectable, RegisterInspectable};
 | 
				
			||||||
use bevy_prototype_lyon::{entity::ShapeBundle, prelude::*};
 | 
					use bevy_prototype_lyon::prelude::*;
 | 
				
			||||||
use bevy_tweening::{
 | 
					use bevy_tweening::{
 | 
				
			||||||
    lens::{TransformPositionLens, TransformRotateXLens, TransformRotateZLens, TransformScaleLens},
 | 
					    lens::{TransformPositionLens, TransformRotateZLens},
 | 
				
			||||||
    Animator, EaseFunction, Lens, Sequence, Tween, Tweenable, TweeningPlugin, TweeningType,
 | 
					    Animator, EaseFunction, Sequence, Tween, TweeningPlugin, TweeningType,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use crate::turtle_shapes;
 | 
					use crate::turtle_shapes;
 | 
				
			||||||
@ -159,10 +159,6 @@ enum TurtleCommand {
 | 
				
			|||||||
    Circle,
 | 
					    Circle,
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct TurtleMoveLens {
 | 
					 | 
				
			||||||
    start: Vec3,
 | 
					 | 
				
			||||||
    end: Vec3,
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
fn setup(mut commands: Commands) {
 | 
					fn setup(mut commands: Commands) {
 | 
				
			||||||
    let animator = Animator::new(Tween::new(
 | 
					    let animator = Animator::new(Tween::new(
 | 
				
			||||||
        // Use a quadratic easing on both endpoints.
 | 
					        // Use a quadratic easing on both endpoints.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user