Compare commits
No commits in common. "9d42c64d03a26ac6645bc5806ad8c96eaee1ebc8" and "5ab4ee2fcf4b3fe3db50e7aa33e936314f4852d1" have entirely different histories.
9d42c64d03
...
5ab4ee2fcf
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -3045,7 +3045,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "outfly"
|
name = "outfly"
|
||||||
version = "0.12.0-dev"
|
version = "0.11.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bevy",
|
"bevy",
|
||||||
"bevy_embedded_assets",
|
"bevy_embedded_assets",
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "outfly"
|
name = "outfly"
|
||||||
version = "0.12.0-dev"
|
version = "0.11.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
homepage = "https://codeberg.org/outfly/outfly"
|
homepage = "https://codeberg.org/outfly/outfly"
|
||||||
repository = "https://codeberg.org/outfly/outfly"
|
repository = "https://codeberg.org/outfly/outfly"
|
||||||
|
|
|
@ -570,7 +570,7 @@ pub fn apply_input_to_player(
|
||||||
// Visual effect
|
// Visual effect
|
||||||
if bike.is_none() && acceleration_total.length_squared() > 1e-4 {
|
if bike.is_none() && acceleration_total.length_squared() > 1e-4 {
|
||||||
let thruster_direction = acceleration_total.normalize();
|
let thruster_direction = acceleration_total.normalize();
|
||||||
let thruster_v = v.0 - 5.0 * thruster_direction;
|
let thruster_v = v.0 - 10.0 * thruster_direction;
|
||||||
ew_effect.send(visual::SpawnEffectEvent {
|
ew_effect.send(visual::SpawnEffectEvent {
|
||||||
duration: 2.0,
|
duration: 2.0,
|
||||||
class: visual::Effects::ThrusterParticle(pos.clone(), LinearVelocity::from(thruster_v)),
|
class: visual::Effects::ThrusterParticle(pos.clone(), LinearVelocity::from(thruster_v)),
|
||||||
|
|
|
@ -186,7 +186,7 @@ pub fn spawn_effects(
|
||||||
FadeMaterial {
|
FadeMaterial {
|
||||||
start_time: now,
|
start_time: now,
|
||||||
duration: effect.duration,
|
duration: effect.duration,
|
||||||
value_start: 0.01,
|
value_start: 0.1,
|
||||||
value_end: 0.0,
|
value_end: 0.0,
|
||||||
},
|
},
|
||||||
world::DespawnAt(now + effect.duration),
|
world::DespawnAt(now + effect.duration),
|
||||||
|
@ -198,7 +198,6 @@ pub fn spawn_effects(
|
||||||
base_color_texture: Some(texture),
|
base_color_texture: Some(texture),
|
||||||
perceptual_roughness: 1.0,
|
perceptual_roughness: 1.0,
|
||||||
metallic: 0.5,
|
metallic: 0.5,
|
||||||
unlit: true,
|
|
||||||
alpha_mode: AlphaMode::Blend,
|
alpha_mode: AlphaMode::Blend,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in a new issue