From 1d8c368137f0889de4e21644be1ac33db5a3656c Mon Sep 17 00:00:00 2001 From: juliancoffee Date: Sat, 18 Sep 2021 19:52:51 +0300 Subject: [PATCH] Tweak coefficient of beam_offset for clay_golem --- common/src/states/basic_beam.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/src/states/basic_beam.rs b/common/src/states/basic_beam.rs index 9b700b3b1d..d67604fdc9 100644 --- a/common/src/states/basic_beam.rs +++ b/common/src/states/basic_beam.rs @@ -222,7 +222,10 @@ impl CharacterBehavior for Data { fn height_offset(body: &Body, look_dir: Dir) -> f32 { match body { Body::BirdLarge(_) => body.height() * 0.8, - Body::Golem(_) => body.height() * 0.9 + look_dir.z * 3.0, + Body::Golem(_) => { + const DIR_COEFF: f32 = 2.0; + body.height() * 0.9 + look_dir.z * DIR_COEFF + }, Body::BipedLarge(b) => match b.species { biped_large::Species::Mindflayer => body.height() * 0.6, _ => body.height() * 0.5,