mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
tweaking quadrupedmedium
Former-commit-id: 61dac48095caa4c7f0fe92ff7badf360b1a1402d
This commit is contained in:
parent
cd4e36e32a
commit
c342a7136b
@ -1,7 +1,7 @@
|
||||
pub mod QuadrupedMedium;
|
||||
pub mod character;
|
||||
pub mod fixture;
|
||||
pub mod quadruped;
|
||||
pub mod quadrupedmedium;
|
||||
|
||||
// Library
|
||||
use vek::*;
|
||||
|
@ -2,9 +2,8 @@ use crate::{
|
||||
anim::{
|
||||
character::{self, CharacterSkeleton},
|
||||
quadruped::{self, QuadrupedSkeleton},
|
||||
Animation,
|
||||
QuadrupedMedium::{self, QuadrupedMediumSkeleton},
|
||||
Skeleton,
|
||||
quadrupedmedium::{self, QuadrupedMediumSkeleton},
|
||||
Animation, Skeleton,
|
||||
},
|
||||
mesh::Meshable,
|
||||
render::{
|
||||
@ -561,20 +560,20 @@ impl FigureMgr {
|
||||
});
|
||||
|
||||
let target_skeleton = match animation_history.current {
|
||||
comp::Animation::Run => QuadrupedMedium::RunAnimation::update_skeleton(
|
||||
comp::Animation::Run => quadrupedmedium::RunAnimation::update_skeleton(
|
||||
state.skeleton_mut(),
|
||||
(vel.0.magnitude(), time),
|
||||
animation_history.time,
|
||||
),
|
||||
comp::Animation::Idle => {
|
||||
QuadrupedMedium::IdleAnimation::update_skeleton(
|
||||
quadrupedmedium::IdleAnimation::update_skeleton(
|
||||
state.skeleton_mut(),
|
||||
time,
|
||||
animation_history.time,
|
||||
)
|
||||
}
|
||||
comp::Animation::Jump => {
|
||||
QuadrupedMedium::JumpAnimation::update_skeleton(
|
||||
quadrupedmedium::JumpAnimation::update_skeleton(
|
||||
state.skeleton_mut(),
|
||||
(vel.0.magnitude(), time),
|
||||
animation_history.time,
|
||||
|
Loading…
Reference in New Issue
Block a user