From 1193797a1e124fec2e5bacbad43f629db5cb97ad Mon Sep 17 00:00:00 2001 From: Franklin Date: Thu, 9 Nov 2023 09:42:01 -0400 Subject: [PATCH] comments --- src/logic/core/guns/shoot.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/logic/core/guns/shoot.rs b/src/logic/core/guns/shoot.rs index 1128ed1..76c64f2 100644 --- a/src/logic/core/guns/shoot.rs +++ b/src/logic/core/guns/shoot.rs @@ -15,12 +15,11 @@ pub fn shoot_bullet( _up: Vec3, caliber: Caliber ) { - //let transform = Transform::from_translation(firing_point).look_at(target, up) // Spawn muzzle flash LIGHT commands.spawn( (PointLightBundle { point_light: PointLight { - //252, 238, 128 + //RGB 252, 238, 128 color: Color::Rgba { red: 252., green: 238., blue: 128., alpha: 0.5 }, intensity: 0.005, range: 50.0, @@ -32,9 +31,6 @@ pub fn shoot_bullet( ..Default::default() }, MuzzleFlashMarker(Timer::new(Duration::from_millis(10), TimerMode::Once))) ); - - println!("origin: {}", firing_point.translation); - println!("end: {}", firing_point.forward() * caliber.range()); commands.spawn( MaterialMeshBundle { mesh: { @@ -51,7 +47,6 @@ pub fn shoot_bullet( ..Default::default() } ); - } /*