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

Nodes get zoomies and orbit base node group (+some clusters unaffected?) #35

Open
Inertia-Squared opened this issue Nov 30, 2023 · 3 comments

Comments

@Inertia-Squared
Copy link
Contributor

More of a funny bug here, not sure how this could be fixed without a zero-sum physics solve or some unorthodox changes to the physics, but its very fun to watch it go.

Planning to spend a couple hours today looking over all the new changes and help make improvements where I can!

Sequence.01_2.mp4
@marmust
Copy link
Owner

marmust commented Dec 1, 2023

tysm for trying to fix it :D

some clusters might be unaffected because theyre out of physics range (click e until it says colormode in_range)

i already tried fixing it
here is all i know:
1: already encountered this on the porevious version of the physics (idk if it worked there)
2: the thing is spinning only because the root node is anchored, if it wasnt, then they would just fly in one direction
possible fixes:
3: maybe can be fixed by adding a counter-force to the node currently pushing or pulling (kinda makes it unstable) (and then you need to half all the force magnitudes)
4: bug goes away when repulsion is removed (or interaction radius is made much smaller)
5: possibly make only nodes who have children be able to repel (only other nodes who have children)
anyways good luck ur super helpful

@Inertia-Squared
Copy link
Contributor Author

Thanks for the tips! That helps a lot actually.

I'm fairly certain that the current issue with the simulation is that it doesn't follow newton's laws of motion. If we added up all the forces being applied in each physics frame it would likely not be 0.

If we can get it to be a zero-sum simulation, that would be pretty awesome because it would also mean that we shouldn't need to anchor the first node either. I'll have a look into it!

@PlasmaPig13
Copy link

I made a graph rearranger recently and it doesn't (as far as I'm aware) have some of these issues. If anyone would like to have a look and consider the system's potential applications to this project this is a link to a Desmos graph that showcases my system: https://www.desmos.com/calculator/v61ydfzdzm

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

3 participants