Added a build process

This commit is contained in:
2022-01-29 19:13:36 +03:00
parent 31a1a3c3f4
commit a7459b7557
9 changed files with 539 additions and 16 deletions

View File

@@ -114,9 +114,14 @@ export default {
loader.load(
phoneObj,
(body) => {
body.traverse((child) => {
if (child instanceof THREE.Mesh) {
child.material = new THREE.MeshLambertMaterial();
}
});
body.position.y = -60;
phone.add(body);
scene.add(phone);
},
);
};
@@ -125,6 +130,7 @@ export default {
phone.acceleration.y = -0.01;
phone.rotation.x = -0.1;
phone.rotation.y = 0.5;
scene.add(phone);
screenInit();
bodyInit();
};