minor anim fix

This commit is contained in:
jshipsey 2020-09-17 21:59:05 -04:00
parent 5bb45a4861
commit b0767cb7a5
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ version = "0.7.0"
name = "voxygen_anim"
# Uncomment to use animation hot reloading
# Note: this breaks `cargo test`
crate-type = ["lib", "cdylib"]
# crate-type = ["lib", "cdylib"]
[features]
be-dyn-lib = []

View File

@ -71,10 +71,10 @@ impl Animation for RunAnimation {
.sin(); //1.9
//FR
let foot2a = (anim_time as f32 * (16.0) * lab as f32 * speedmult + shift2).sin(); //1.2
let foot2b = (anim_time as f32 * (16.0) * lab as f32 * speedmult + 1.57 + shift2).sin(); //1.6
let foot2b = (anim_time as f32 * (16.0) * lab as f32 * speedmult + 1.1 + shift2).sin(); //1.6
//BL
let foot3a = (anim_time as f32 * (16.0) * lab as f32 * speedmult + shift3).sin(); //0.0
let foot3b = (anim_time as f32 * (16.0) * lab as f32 * speedmult + 1.57 + shift3).sin(); //0.4
let foot3b = (anim_time as f32 * (16.0) * lab as f32 * speedmult + 1.1 + shift3).sin(); //0.4
//BR
let foot4a =
(anim_time as f32 * (16.0) * lab as f32 * speedmult + 0.0 + canceler * 0.05 + shift4)