From 0abfb672514055ec16d933d281afb5acf4b57582 Mon Sep 17 00:00:00 2001 From: _ <> Date: Mon, 9 Mar 2020 00:28:00 +0000 Subject: [PATCH] Start to sketch out the idea I had --- src/bin/pumpkin.rs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/bin/pumpkin.rs b/src/bin/pumpkin.rs index 3fd7dff..4467469 100644 --- a/src/bin/pumpkin.rs +++ b/src/bin/pumpkin.rs @@ -1097,9 +1097,14 @@ fn main () { state.step (&controller, &user_control); } - let gravity = (0.0, 0.0, -1.0).into (); - let wind = state.wind.to_vec3 () * -1.0; + let purple = (1.0, 0.5, 1.0).into (); + let origin: Vec3 = (0.0, 0.0, 1.35).into (); + let gravity = (0.0, 0.0, -1.0).into (); + + let wind = state.wind.to_vec3 () * -1.0; + let wind_force = (wind.x (), 0.125 * wind.y (), wind.z ()).into (); + let control_flash = if graphics_frames % 16 >= 8 { (1.0, 1.0, 1.0).into () @@ -1121,9 +1126,14 @@ fn main () { control_flash } else { - (1.0, 0.5, 1.0).into () + purple }, }, + Arrow { + origin: origin, + direction: wind_force, + color: purple, + }, ]; let renderable_arrows: Vec <_> = arrows.iter ().map (|arrow| {