add new award
This commit is contained in:
Binary file not shown.
@@ -103,8 +103,8 @@ class MazeQuizGame extends EventDispatcher {
|
|||||||
objects:[
|
objects:[
|
||||||
{
|
{
|
||||||
type: 'Gltf',
|
type: 'Gltf',
|
||||||
position:[0,.25,len + .52], scale: [0.037, 0.037, 0.037], rotation: [0, Math.PI/4, 0],
|
position:[0,.22,len + .52], scale: [0.33, 0.33, 0.33], rotation: [0, Math.PI/4, 0],
|
||||||
value: '/static/meshes/quiz/award.glb'
|
value: '/static/meshes/quiz/trophy.glb'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
import { AnimationMixer, Vector3 } from 'three';
|
import { AnimationMixer, Vector3 } from 'three';
|
||||||
import { PointerControls } from './PointerControls';
|
import { PointerControls } from './PointerControls';
|
||||||
import { getBoundingBox, getBoundingBoxCenterPoint, getBoundingBoxSize } from './MeshUtils';
|
import { getBoundingBox, getBoundingBoxSize } from './MeshUtils';
|
||||||
import { QueryFilterFlags } from '@dimforge/rapier3d';
|
import { QueryFilterFlags } from '@dimforge/rapier3d';
|
||||||
|
|
||||||
class Hero{
|
class Hero{
|
||||||
@@ -148,7 +148,7 @@ class Hero{
|
|||||||
this.fadeDuration = 1;
|
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;
|
this.cameraIdleDelta += delta * 0.33;
|
||||||
}else {
|
}else {
|
||||||
this.cameraIdleDelta = 0;
|
this.cameraIdleDelta = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user