How do you make one object orbit another?

This may seem trivial for some but I’m having trouble getting an object to move in a circle around another, I’ve tried various things but to no avail.

2 Likes

This actually requires some trig.

Example game links:

https://flowlab.io/games/play/2365503
https://flowlab.io/game/play/1551636

2 Likes

This is the Examples Page, it had what you were looking for on it :+1:
It doesn’t have everything, but it’s a decent place to find some things quickly

3 Likes

Heres a few things that might help you out…

Hope these examples by JR01 and Grazer helps!

2 Likes

So I need to rotate a grid of points, so that each point stays in the relative same distance from each other. whenever I’ve used these formulas they all either teleport into one spot or into a line, rotating like a sort of baguette. Instead I want all of the points to rotate uniformly. For example think of 9 cubes that make up a bigger cube, I want it to appear a if this bigger cube is rotating all on its own, instead of all the smaller cubes teleporting together and then orbiting around the center. I hope that makes sense

make a new topic for this?

1 Like

Wait, just wondering, did you get the equation from my example, or JR01’s example?

I think I looked at both yours, JR01’s and the examples Overma Games gave, but I more closely copied and used JR01’s example. I do have a compromise that I think I could use though, just doing the math to teleport things in 90 degree increments.