Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App: 7-way walk/run blend #1695

Closed
avaer opened this issue Oct 31, 2021 · 3 comments
Closed

App: 7-way walk/run blend #1695

avaer opened this issue Oct 31, 2021 · 3 comments
Assignees

Comments

@avaer
Copy link
Contributor

avaer commented Oct 31, 2021

It will be necessary to interpolate walk/run smoothly due to frame timing differences. We don't want to get into a mid-frame case where the run was triggered when we should have been walking. Smoothing the frame difference will look way better, and no longer look like it's glitched.

@avaer
Copy link
Contributor Author

avaer commented Nov 3, 2021

Run speed is currently an if statement in avatars.js:

const runSpeed = 0.75;

@avaer
Copy link
Contributor Author

avaer commented Nov 15, 2021

This is the code that would need to change:

const _get5wayBlend = (horizontalAnimationAngles, horizontalAnimationAnglesMirror, idleAnimation, mirrorFactor, angleFactor, speedFactor, k, lerpFn, target) => {

@skaljac
Copy link
Contributor

skaljac commented Dec 12, 2021

Issue solved with
#1947

@skaljac skaljac closed this as completed Dec 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants