mirror of
https://github.com/anatolykopyl/vue-three-d-mockup.git
synced 2026-03-26 12:55:08 +00:00
Added a build process
This commit is contained in:
@@ -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();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user