mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'swilliams/more-collision-balancing' into 'master'
Fixed biped_small and humanoid hitboxes See merge request veloren/veloren!2411
This commit is contained in:
commit
279731a9e1
@ -308,7 +308,16 @@ impl Body {
|
||||
|
||||
_ => Vec3::new(4.6, 3.0, 6.0),
|
||||
},
|
||||
Body::BipedSmall(_) => Vec3::new(1.0, 0.75, 1.4),
|
||||
Body::BipedSmall(body) => match body.species {
|
||||
biped_small::Species::Gnarling => Vec3::new(1.0, 0.75, 1.4),
|
||||
biped_small::Species::Haniwa => Vec3::new(1.0, 0.75, 2.2),
|
||||
biped_small::Species::Adlet => Vec3::new(1.0, 0.75, 2.0),
|
||||
biped_small::Species::Sahagin => Vec3::new(1.0, 1.2, 1.7),
|
||||
biped_small::Species::Myrmidon => Vec3::new(1.0, 0.75, 2.2),
|
||||
biped_small::Species::Husk => Vec3::new(1.0, 0.75, 1.7),
|
||||
|
||||
_ => Vec3::new(1.0, 0.75, 1.4),
|
||||
},
|
||||
Body::BirdMedium(_) => Vec3::new(2.0, 1.0, 1.5),
|
||||
Body::BirdLarge(_) => Vec3::new(2.0, 6.0, 3.5),
|
||||
Body::Dragon(_) => Vec3::new(16.0, 10.0, 16.0),
|
||||
@ -317,16 +326,16 @@ impl Body {
|
||||
Body::Golem(_) => Vec3::new(5.0, 5.0, 7.5),
|
||||
Body::Humanoid(humanoid) => {
|
||||
let height = match (humanoid.species, humanoid.body_type) {
|
||||
(humanoid::Species::Orc, humanoid::BodyType::Male) => 2.3,
|
||||
(humanoid::Species::Orc, humanoid::BodyType::Female) => 2.2,
|
||||
(humanoid::Species::Human, humanoid::BodyType::Male) => 2.3,
|
||||
(humanoid::Species::Human, humanoid::BodyType::Female) => 2.2,
|
||||
(humanoid::Species::Elf, humanoid::BodyType::Male) => 2.3,
|
||||
(humanoid::Species::Elf, humanoid::BodyType::Female) => 2.2,
|
||||
(humanoid::Species::Dwarf, humanoid::BodyType::Male) => 1.9,
|
||||
(humanoid::Species::Dwarf, humanoid::BodyType::Female) => 1.8,
|
||||
(humanoid::Species::Undead, humanoid::BodyType::Male) => 2.2,
|
||||
(humanoid::Species::Undead, humanoid::BodyType::Female) => 2.1,
|
||||
(humanoid::Species::Orc, humanoid::BodyType::Male) => 2.0,
|
||||
(humanoid::Species::Orc, humanoid::BodyType::Female) => 1.9,
|
||||
(humanoid::Species::Human, humanoid::BodyType::Male) => 1.8,
|
||||
(humanoid::Species::Human, humanoid::BodyType::Female) => 1.7,
|
||||
(humanoid::Species::Elf, humanoid::BodyType::Male) => 1.9,
|
||||
(humanoid::Species::Elf, humanoid::BodyType::Female) => 1.8,
|
||||
(humanoid::Species::Dwarf, humanoid::BodyType::Male) => 1.6,
|
||||
(humanoid::Species::Dwarf, humanoid::BodyType::Female) => 1.5,
|
||||
(humanoid::Species::Undead, humanoid::BodyType::Male) => 1.9,
|
||||
(humanoid::Species::Undead, humanoid::BodyType::Female) => 1.8,
|
||||
(humanoid::Species::Danari, humanoid::BodyType::Male) => 1.5,
|
||||
(humanoid::Species::Danari, humanoid::BodyType::Female) => 1.4,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user