Hello there,
I’m trying to add some objects to a scene and control them using some buttons.
I mean, move them in the screen by setting their position and also change the scale of each object.
I tried this snippet but failed because the position is read-only:
scene.children[1].position = [-10, 0, 0];
Also tried this too:
scene.children[1].position.set(0, 0, 10);
Now I wonder how can I change the position and scale of each object in the scene?