|
@@ -97,7 +97,6 @@
|
|
|
const randomizeMatrix = function () {
|
|
|
|
|
|
const position = new THREE.Vector3();
|
|
|
- const rotation = new THREE.Euler();
|
|
|
const quaternion = new THREE.Quaternion();
|
|
|
const scale = new THREE.Vector3();
|
|
|
|
|
@@ -107,11 +106,7 @@
|
|
|
position.y = Math.random() * 40 - 20;
|
|
|
position.z = Math.random() * 40 - 20;
|
|
|
|
|
|
- rotation.x = Math.random() * 2 * Math.PI;
|
|
|
- rotation.y = Math.random() * 2 * Math.PI;
|
|
|
- rotation.z = Math.random() * 2 * Math.PI;
|
|
|
-
|
|
|
- quaternion.setFromEuler( rotation );
|
|
|
+ quaternion.random();
|
|
|
|
|
|
scale.x = scale.y = scale.z = Math.random() * 1;
|
|
|
|