Start to sketch out the idea I had

main
_ 2020-03-09 00:28:00 +00:00
parent 8a6d5518f1
commit 0abfb67251
1 changed files with 13 additions and 3 deletions

View File

@ -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| {