Set the position of a child of a scene

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?

I found that setting the individual x y z works best

signalcube.position.x = -1000;
1 Like

this must work. Did you call function Render() after setting position?

1 Like

No, I didn’t. I’ll try it.
thank you

I’ve tried this method too

Thanks a million. It’s working just fine.