Merge branch 'juliancoffee/clay_gole_laser_fix' into 'master'

Tweak coefficient of beam_offset for clay_golem

See merge request veloren/veloren!2859
This commit is contained in:
Joshua Barretto 2021-09-18 17:36:08 +00:00
commit f94d579c04

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,