mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
animation minor fixes
Former-commit-id: 4326db41103a0d3f87c7ad638fb38cd2f3eec71c
This commit is contained in:
parent
60fa9a7e20
commit
46f571f99a
@ -30,26 +30,26 @@ impl Animation for RunAnimation {
|
||||
let wavecos_slow = (time as f32 * 8.0 + PI).cos();
|
||||
let wave_dip = (wave_slow.abs() - 0.5).abs();
|
||||
|
||||
next.head.offset = Vec3::unit_z() * (12.0 + fuzzwave *0.4)/ 11.0;
|
||||
next.head.offset = Vec3::unit_z() * (12.0 + fuzzwave *1.0)/ 11.0;
|
||||
//next.head.ori = Quaternion::rotation_z();
|
||||
|
||||
next.chest.offset = Vec3::unit_z() * (8.0 + fuzzwave * 0.3) / 11.0;
|
||||
next.chest.ori = Quaternion::rotation_z(wave * 0.2);
|
||||
next.chest.offset = Vec3::unit_z() * (8.0 + fuzzwave * 0.8) / 11.0;
|
||||
next.chest.ori = Quaternion::rotation_z(wave * 0.3);
|
||||
|
||||
next.belt.offset = Vec3::unit_z() * (6.0 + fuzzwave * 0.3)/ 11.0;
|
||||
next.belt.ori = Quaternion::rotation_z(wave * 0.2);
|
||||
next.belt.offset = Vec3::unit_z() * (6.0 + fuzzwave * 0.8)/ 11.0;
|
||||
next.belt.ori = Quaternion::rotation_z(wave * 0.3);
|
||||
|
||||
next.shorts.offset = Vec3::unit_z() * (3.0 + fuzzwave * 0.3) / 11.0;
|
||||
next.shorts.ori = Quaternion::rotation_z(wave * 0.1);
|
||||
next.shorts.offset = Vec3::unit_z() * (3.0 + fuzzwave * 0.8) / 11.0;
|
||||
next.shorts.ori = Quaternion::rotation_z(wave * 0.2);
|
||||
|
||||
next.l_hand.offset = Vec3::new(0.0 - wavecos * 1.0, 7.5, 11.0 - wave * 1.0) / 11.0;
|
||||
next.l_hand.ori = Quaternion::rotation_y(wave * -1.8);
|
||||
next.r_hand.offset = Vec3::new(0.0 + wavecos * 1.0, -7.5, 11.0 + wave * 1.0) / 11.0;
|
||||
next.r_hand.ori = Quaternion::rotation_y(wave * 1.8);
|
||||
|
||||
next.l_foot.offset = Vec3::new(2.5 - wavecos * 4.0, 3.4, 6.0 + wave * 2.5) / 11.0;
|
||||
next.l_foot.offset = Vec3::new(2.5 - wavecos * 4.0, 3.4, 6.0 + wave * 2.9) / 11.0;
|
||||
next.l_foot.ori = Quaternion::rotation_y(wave * -1.0);
|
||||
next.r_foot.offset = Vec3::new(2.5 + wavecos * 4.0, -3.4, 6.0 - wave * 2.5) / 11.0;
|
||||
next.r_foot.offset = Vec3::new(2.5 + wavecos * 4.0, -3.4, 6.0 - wave * 2.9) / 11.0;
|
||||
next.r_foot.ori = Quaternion::rotation_y(wave * 1.0);
|
||||
|
||||
next.back.offset = Vec3::new(-6.0, 16.0, 15.0);
|
||||
|
Loading…
Reference in New Issue
Block a user