Is there a way to store vector data in an array without it being affected when the original vector values are changed? I inserted a vector into an array and when I modified its values, the corresponding values in the array also changed.
const array10 = [];
let vector = new THREE.Vector3(0,0,0);
array10.push(vector);
vector.x = 10;
console.log(array10[1]);
Output: (10,0,0)