diff --git a/packages/frontend/assets/world/lobby/default.blend b/packages/frontend/assets/world/lobby/default.blend index 8bcf39a63b..a92902c9d0 100644 Binary files a/packages/frontend/assets/world/lobby/default.blend and b/packages/frontend/assets/world/lobby/default.blend differ diff --git a/packages/frontend/assets/world/lobby/default.glb b/packages/frontend/assets/world/lobby/default.glb index bff8c37084..2c1f3073d2 100644 Binary files a/packages/frontend/assets/world/lobby/default.glb and b/packages/frontend/assets/world/lobby/default.glb differ diff --git a/packages/frontend/src/world/engine.ts b/packages/frontend/src/world/engine.ts index ed68ae93e2..cd6d0f131a 100644 --- a/packages/frontend/src/world/engine.ts +++ b/packages/frontend/src/world/engine.ts @@ -80,8 +80,8 @@ export class WorldEngine extends EventEmitter { skybox.material = skyboxMat; skybox.infiniteDistance = true; - //this.time = TIME_MAP[new Date().getHours() as keyof typeof TIME_MAP]; - this.time = TIME_MAP[12 as keyof typeof TIME_MAP]; + this.time = TIME_MAP[new Date().getHours() as keyof typeof TIME_MAP]; + //this.time = TIME_MAP[12 as keyof typeof TIME_MAP]; if (this.time === 0) { skyboxMat.emissiveColor = new BABYLON.Color3(1, 1, 1); @@ -233,17 +233,31 @@ export class WorldEngine extends EventEmitter { this.textMaterial.freeze(); { - const messageRing = envObj.meshes.find(m => m.name.includes('__LED_RING__')); - messageRing.rotation = messageRing.rotationQuaternion.toEulerAngles(); - messageRing.rotationQuaternion = null; + const objet = envObj.meshes.find(m => m.name.includes('__OBJET__')); + objet.rotation = objet.rotationQuaternion.toEulerAngles(); + objet.rotationQuaternion = null; const anim = new BABYLON.Animation('', 'rotation.y', 60, BABYLON.Animation.ANIMATIONTYPE_FLOAT, BABYLON.Animation.ANIMATIONLOOPMODE_CYCLE); anim.setKeys([ { frame: 0, value: 0 }, { frame: 5000, value: -(Math.PI * 2) }, ]); - messageRing.animations = [anim]; - this.scene.beginAnimation(messageRing, 0, 5000, true); + objet.animations = [anim]; + this.scene.beginAnimation(objet, 0, 5000, true); + } + + { + const ring = envObj.meshes.find(m => m.name.includes('__LED_RING__')); + ring.rotation = ring.rotationQuaternion.toEulerAngles(); + ring.rotationQuaternion = null; + + const anim = new BABYLON.Animation('', 'rotation.y', 60, BABYLON.Animation.ANIMATIONTYPE_FLOAT, BABYLON.Animation.ANIMATIONLOOPMODE_CYCLE); + anim.setKeys([ + { frame: 0, value: 0 }, + { frame: 5000, value: -(Math.PI * 2) }, + ]); + ring.animations = [anim]; + this.scene.beginAnimation(ring, 0, 5000, true); } {