This commit is contained in:
Louis Pearson 2020-07-31 19:31:43 -06:00
parent 43a3f5ae8e
commit a162872321
3 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ edition = "2018"
name = "voxygen_anim" name = "voxygen_anim"
# Uncomment to use animation hot reloading # Uncomment to use animation hot reloading
# Note: this breaks `cargo test` # Note: this breaks `cargo test`
# crate-type = ["lib", "cdylib"] crate-type = ["lib", "cdylib"]
[features] [features]
use-dyn-lib = ["libloading", "notify", "lazy_static", "tracing", "find_folder"] use-dyn-lib = ["libloading", "notify", "lazy_static", "tracing", "find_folder"]

View File

@ -34,7 +34,7 @@ impl Animation for RunAnimation {
) -> (Self::Skeleton, VecDeque<AnimationEventItem>) { ) -> (Self::Skeleton, VecDeque<AnimationEventItem>) {
let mut next = (*skeleton).clone(); let mut next = (*skeleton).clone();
let speed = Vec2::<f32>::from(velocity).magnitude() / 3.0; let speed = Vec2::<f32>::from(velocity).magnitude();
*rate = 1.0; *rate = 1.0;
let impact = (avg_vel.z).max(-8.0); let impact = (avg_vel.z).max(-8.0);

View File

@ -893,7 +893,7 @@ impl FigureMgr {
for event in animation_events { for event in animation_events {
match &event.event { match &event.event {
AnimationEvent::Step => { AnimationEvent::Step => {
let ev_pos = pos.0 + event.pos; let ev_pos = pos.0;
audio_events.emit_now(SfxEventItem::new(SfxEvent::Run, Some(ev_pos), Some(0.9))); audio_events.emit_now(SfxEventItem::new(SfxEvent::Run, Some(ev_pos), Some(0.9)));
} }
} }