Tweak coefficient of beam_offset for clay_golem

This commit is contained in:
juliancoffee 2021-09-18 19:52:51 +03:00
parent 80f341f2b1
commit 1d8c368137

View File

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