mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Blah
This commit is contained in:
parent
43a3f5ae8e
commit
a162872321
@ -8,7 +8,7 @@ edition = "2018"
|
||||
name = "voxygen_anim"
|
||||
# Uncomment to use animation hot reloading
|
||||
# Note: this breaks `cargo test`
|
||||
# crate-type = ["lib", "cdylib"]
|
||||
crate-type = ["lib", "cdylib"]
|
||||
|
||||
[features]
|
||||
use-dyn-lib = ["libloading", "notify", "lazy_static", "tracing", "find_folder"]
|
||||
|
@ -34,7 +34,7 @@ impl Animation for RunAnimation {
|
||||
) -> (Self::Skeleton, VecDeque<AnimationEventItem>) {
|
||||
let mut next = (*skeleton).clone();
|
||||
|
||||
let speed = Vec2::<f32>::from(velocity).magnitude() / 3.0;
|
||||
let speed = Vec2::<f32>::from(velocity).magnitude();
|
||||
*rate = 1.0;
|
||||
let impact = (avg_vel.z).max(-8.0);
|
||||
|
||||
|
@ -893,7 +893,7 @@ impl FigureMgr {
|
||||
for event in animation_events {
|
||||
match &event.event {
|
||||
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)));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user