We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67f63c6 commit 5adf19dCopy full SHA for 5adf19d
packages/website/verse/Player.js
@@ -581,8 +581,15 @@ export class Player extends Entity {
581
this.jumping = true
582
}
583
584
- // if not grounded and our velocity is downward, progress to falling
+ // if not grounded and our velocity is downward, start timing our falling
585
if (!this.grounded && this.actor.getLinearVelocity().y < 0) {
586
+ this.fallTimer += delta
587
+ } else {
588
+ this.fallTimer = 0
589
+ }
590
+ // if we've been falling for a bit then progress to actual falling
591
+ // this is to prevent animation jitter when only falling for a very small amount of time
592
+ if (this.fallTimer > 0.1) {
593
this.jumping = false
594
this.falling = true
595
0 commit comments