0 votes

This seems more like a math problem but... how can I do this?

I basically know all the information of the circle.

The radius, the origin, etc.

If I want to fit a specified number of points evenly within the circle, what formula could get me that?

At the current moment I run through each coordinate in the grid and choose whether or not that coordinate is a candidate for being placed. Mainly if it's within the circle. Now I'd like to constrain this by making it place points evenly. But like, if I want for example 2000 points, how can I place those 2000 points evenly?


in Engine by (43 points)

1 Answer

0 votes

This is likely more algorithmically challenging than one might expect. I think something like the accepted answer here is what you're after...

by (12,460 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.