Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this be used to even distribute particles inside an area? #8

Open
trusktr opened this issue Mar 3, 2018 · 1 comment
Open

Can this be used to even distribute particles inside an area? #8

trusktr opened this issue Mar 3, 2018 · 1 comment

Comments

@trusktr
Copy link

trusktr commented Mar 3, 2018

I have a spherical area, and I'd like for particles to naturally distribute themselves somewhat evenly inside the area.

Could I possibly use Matter's gravity along with this to somehow make them want to distribute themselves evenly inside the area?

@probityrules
Copy link

I think it could be a good match, but you'd probably need to make your own attractor / repeller function since you would essentially need to strongly repel near objects and the spherical area's edge and (maybe?) slightly attract far objects. That said, the included attractor gravity function with negative gravity might do what you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants