|
@@ -76,7 +76,7 @@
|
|
|
|
|
|
const material = new THREE.MeshPhongMaterial( { color: 0xffffff * Math.random() } );
|
|
const material = new THREE.MeshPhongMaterial( { color: 0xffffff * Math.random() } );
|
|
const mesh = new THREE.Mesh( geometry, material );
|
|
const mesh = new THREE.Mesh( geometry, material );
|
|
- mesh.position.setFromMatrixPosition( reticle.matrix );
|
|
|
|
|
|
+ reticle.matrix.decompose( mesh.position, mesh.quaternion, mesh.scale );
|
|
mesh.scale.y = Math.random() * 2 + 1;
|
|
mesh.scale.y = Math.random() * 2 + 1;
|
|
scene.add( mesh );
|
|
scene.add( mesh );
|
|
|
|
|