How to move objects simultaniously?

Hi,

I am programming a project, where I have to push about 50 objects simultaniously using the physics block. I have the Name of the Objects and know the direction. But how can I do it simultaniously? I have tried the Block “set phyics tick rate to …” but everytime I run it, one item starts to fly, and then, about a second later, the next. I hope you guys can help me out with that.

Gerrit

Hi Gerrit,

Use the Run Parallel block in the Control category, and click the cog icon to add a new task.

Cheers,
Geoff @ TechLeap

Hi Geoff,

thanks for your answer. I notived that possibility too. But with about 50 objects, this can be a bit exhausting and confusing. Is there any other way than the run parallel Block?

If you have all the objects in a list, then you can loop through and run the physics blocks inside a run seperately block.

See Using lists in CoBlocks for a tutorial.

Cheers,
Geoff @ TechLeap

I’m working on a project, and I need a cart and a sword to run at the same time. I’ve tried using the rune together block, and I’m not sure if I’m doing it right. Can somone pls help??

For running multiple actions simultaneously, the ‘Run Parallel’ block is indeed the one to use. Double-check how you’re adding the different tasks to it; you typically use the cog icon to add new slots for each action you want to run concurrently.

This helped me a lot. Thanks! :smiley:

To handle that many objects efficiently without a massive ‘Run Parallel’ block, you should put all 50 objects into a List. Then, use a loop to iterate through the list and apply the physics force to each item. This keeps your workspace clean and ensures the physics engine processes the movements much more consistently.