mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
commit
f94d579c04
@ -222,7 +222,10 @@ impl CharacterBehavior for Data {
|
|||||||
fn height_offset(body: &Body, look_dir: Dir) -> f32 {
|
fn height_offset(body: &Body, look_dir: Dir) -> f32 {
|
||||||
match body {
|
match body {
|
||||||
Body::BirdLarge(_) => body.height() * 0.8,
|
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 {
|
Body::BipedLarge(b) => match b.species {
|
||||||
biped_large::Species::Mindflayer => body.height() * 0.6,
|
biped_large::Species::Mindflayer => body.height() * 0.6,
|
||||||
_ => body.height() * 0.5,
|
_ => body.height() * 0.5,
|
||||||
|
Loading…
Reference in New Issue
Block a user