increase idle timeout, ignore long frame timespans
This commit is contained in:
+2
-2
@@ -129,7 +129,7 @@ class Hero{
|
||||
}
|
||||
|
||||
update(delta){
|
||||
if (this.ready && this.engine.physics.started && !this.disableInput) {
|
||||
if (this.ready && this.engine.physics.started && !this.disableInput && delta < 1) {
|
||||
this.updateCharacterControls(delta)
|
||||
if (this.engine.renderer.xr.isPresenting && !this.fpv){
|
||||
this.cameraMode = 'fixed'
|
||||
@@ -200,7 +200,7 @@ class Hero{
|
||||
play = 'idle';
|
||||
}
|
||||
|
||||
if (this.currentAction.startsWith('idle') && play.startsWith('idle') && this.actionStart > 10){
|
||||
if (this.currentAction.startsWith('idle') && play.startsWith('idle') && this.actionStart > 25){
|
||||
let idx = 1 + parseInt(this.currentAction.split('.')[1] || 0);
|
||||
if (this.animationsMap[`idle.${idx}`]) {
|
||||
play = `idle.${idx}`
|
||||
|
||||
Reference in New Issue
Block a user