Start to sketch out the idea I had
parent
8a6d5518f1
commit
0abfb67251
|
@ -1097,9 +1097,14 @@ fn main () {
|
||||||
state.step (&controller, &user_control);
|
state.step (&controller, &user_control);
|
||||||
}
|
}
|
||||||
|
|
||||||
let gravity = (0.0, 0.0, -1.0).into ();
|
let purple = (1.0, 0.5, 1.0).into ();
|
||||||
let wind = state.wind.to_vec3 () * -1.0;
|
|
||||||
let origin: Vec3 = (0.0, 0.0, 1.35).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 {
|
let control_flash = if graphics_frames % 16 >= 8 {
|
||||||
(1.0, 1.0, 1.0).into ()
|
(1.0, 1.0, 1.0).into ()
|
||||||
|
@ -1121,9 +1126,14 @@ fn main () {
|
||||||
control_flash
|
control_flash
|
||||||
}
|
}
|
||||||
else {
|
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| {
|
let renderable_arrows: Vec <_> = arrows.iter ().map (|arrow| {
|
||||||
|
|
Loading…
Reference in New Issue