Within my threejs project, I am working with two objects that I want to have the same scale
vector value.
mesh1 = new THREE.Mesh(geometry, material);
mesh1.scale.x = 0.47;
mesh2 = new THREE.Mesh(geometry, material);
mesh2.scale=mesh1.scale; // Despite attempting this assignment, it does not work
The last line in the code snippet does not produce the desired outcome. Upon reviewing the documentation, I did not find any indication that the scale
property is read-only. After inspecting the source code, I noticed that the property is not defined as writable. Could there be an issue with how threejs functions or perhaps a gap in the documentation's coverage of this behavior?
I am curious if there is a way to synchronize properties like scale (as well as other vectors) among multiple meshes without resorting to manual copying of values.
mesh2.scale.copy(mesh1.scale); // Utilizing this method to duplicate the vector values
UPDATE: It appears that this functionality was operational in earlier versions of threejs - such as the one utilized in the provided example. Was this feature intentionally disabled in subsequent iterations of the library?