add new award

This commit is contained in:
2025-11-30 11:26:42 +02:00
parent 14772a039c
commit 07ce5bc2af
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { AnimationMixer, Vector3 } from 'three';
import { PointerControls } from './PointerControls';
import { getBoundingBox, getBoundingBoxCenterPoint, getBoundingBoxSize } from './MeshUtils';
import { getBoundingBox, getBoundingBoxSize } from './MeshUtils';
import { QueryFilterFlags } from '@dimforge/rapier3d';
class Hero{
@@ -148,7 +148,7 @@ class Hero{
this.fadeDuration = 1;
}
if (this.currentAction.startsWith('idle') && play != 'idle'){
if (this.currentAction.startsWith('idle') && play != 'idle' && !pc.controls.isLocked){
this.cameraIdleDelta += delta * 0.33;
}else {
this.cameraIdleDelta = 0;