How to move all scene meshes at once?

Hi Babylon forum!

I’m looking for a simple code to move all objects (except camera and lights) at once.
In other game engines this can be accomplished by “with all { do something }”

Is there something similar here in Babylon.js?
I was trying something along this line: scene.meshes.forEach().position.x = value;

Thanks

Yup in js the syntax is like this: https://playground.babylonjs.com/#S9VWPK#1

1 Like

Thank you very much. That was really helpful.
Noob here :slight_smile: