Merge branch 'bird_medium_wing_tweaks' into 'master'

bird_medium_wing_tweaks

See merge request veloren/veloren!3844
This commit is contained in:
Justin Shipsey 2023-03-27 19:13:19 +00:00
commit 8bffb0cfc3
2 changed files with 10 additions and 4 deletions

View File

@ -41,6 +41,8 @@ impl Animation for IdleAnimation {
next.leg_r.scale = Vec3::one() * s_a.scaler * 0.99;
next.chest.scale = Vec3::one() * s_a.scaler * 0.99;
next.tail.scale = Vec3::one() * 1.01;
next.wing_in_l.scale = Vec3::one() * s_a.scaler * 0.99;
next.wing_in_r.scale = Vec3::one() * s_a.scaler * 0.99;
next.leg_l.position = Vec3::new(-s_a.leg.0, s_a.leg.1, s_a.leg.2);
next.leg_l.orientation = Quaternion::rotation_x(0.0);
@ -67,8 +69,10 @@ impl Animation for IdleAnimation {
* Quaternion::rotation_y(PI / 2.5 - wave_slow_cos * 0.06)
* Quaternion::rotation_z(PI / 4.0);
next.wing_out_l.position = Vec3::new(-s_a.wing_out.0 / 2.5, s_a.wing_out.1, s_a.wing_out.2);
next.wing_out_r.position = Vec3::new(s_a.wing_out.0 / 2.5, s_a.wing_out.1, s_a.wing_out.2);
next.wing_out_l.position =
Vec3::new(-s_a.wing_out.0 / 2.5, s_a.wing_out.1, s_a.wing_out.2 + 1.0);
next.wing_out_r.position =
Vec3::new(s_a.wing_out.0 / 2.5, s_a.wing_out.1, s_a.wing_out.2 + 1.0);
next.wing_out_l.orientation = Quaternion::rotation_y(0.1) * Quaternion::rotation_z(0.2);
next.wing_out_r.orientation = Quaternion::rotation_y(-0.1) * Quaternion::rotation_z(-0.2);

View File

@ -71,6 +71,8 @@ impl Animation for RunAnimation {
next.leg_r.scale = Vec3::one() * s_a.scaler * 0.99;
next.chest.scale = Vec3::one() * s_a.scaler * 0.99;
next.tail.scale = Vec3::one() * 1.01;
next.wing_in_l.scale = Vec3::one() * s_a.scaler * 0.99;
next.wing_in_r.scale = Vec3::one() * s_a.scaler * 0.99;
next.head.position = Vec3::new(0.0, s_a.head.0, s_a.head.1);
next.head.orientation = Quaternion::rotation_x(-0.1 * speednorm + short * -0.05)
@ -89,8 +91,8 @@ impl Animation for RunAnimation {
next.tail.position = Vec3::new(0.0, s_a.tail.0, s_a.tail.1);
next.tail.orientation = Quaternion::rotation_x(0.6 + short * -0.02);
next.wing_in_l.position = Vec3::new(-s_a.wing_in.0, s_a.wing_in.1, s_a.wing_in.2 + 2.0);
next.wing_in_r.position = Vec3::new(s_a.wing_in.0, s_a.wing_in.1, s_a.wing_in.2 + 2.0);
next.wing_in_l.position = Vec3::new(-s_a.wing_in.0, s_a.wing_in.1, s_a.wing_in.2);
next.wing_in_r.position = Vec3::new(s_a.wing_in.0, s_a.wing_in.1, s_a.wing_in.2);
next.wing_in_l.orientation = Quaternion::rotation_x(-PI / 1.5)
* Quaternion::rotation_y(-PI / 2.5)