Trig Query - Spacing evenly round a circle

I’m trying to create a blueprint that evenly distributes objects around a circle, with an equal distance between each object no matter the amount. The circle should grow as you add more objects.

I’m getting close, but it doesn’t automatically resize as you add objects (in fact it shrinks). I’m sure I’m just missing a simple step and I’d really appreciate someone with better trig knowledge than me to advise.

I the below solution from here: [math - Even distribution of objects on circle - Stack Overflow][1]

Here’s what I’m doing in Blueprint:

And here’s what’s happening in game:

Any help appreciated!

I’m not a Trig pro, but I can see you are setting your Distance From Centre to be determined by some kind of a cosine function, which is going to fluctuate its output between -1, 0, and 1.

The input to the Cosine function is being controlled by the Angle which is determined by the Number Of Objects.

So long story short, the Distance From Centre is going to fluctuate as the number of objects changes, first getting bigger, then smaller, then bigger again, out to a certain average distance.

This is why with a larger number of objects the distance gets smaller. But if you add even more objects, it will probably get bigger again, then even more and it will get smaller again.

This is assuming COSd works like the cosine function I am familiar with.

Thanks for the info, I reworked it to have the radius be (a fixed number * amount of items) and that works well enough for my needs. Cheers!

glad i could help :slight_smile: