Start floating on load

This commit is contained in:
2022-01-29 23:14:15 +03:00
parent 2464d55434
commit 4239d5716b
3 changed files with 12 additions and 6 deletions

View File

@@ -137,6 +137,7 @@ export default {
z: 0.06,
},
});
phone.startFloat();
scene.add(phone);
screenInit();
bodyInit();
@@ -166,11 +167,11 @@ export default {
}
function handleMouseEnter() {
phone.animation = 'lookAt';
if (phone) { phone.animation = 'lookAt'; }
}
function handleMouseLeave() {
phone.animation = 'home';
if (phone) { phone.animation = 'home'; }
}
function handleMouseMove(event) {