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

Why does the attractor only work on one of the two BODYs? #1271

Open
coderavel opened this issue Jan 12, 2024 · 1 comment
Open

Why does the attractor only work on one of the two BODYs? #1271

coderavel opened this issue Jan 12, 2024 · 1 comment

Comments

@coderavel
Copy link

coderavel commented Jan 12, 2024

The attractor works for BODYs created via Composite.stack(), but does not apply to BODYs created with Body.circle().

So I moved the bunny(BODY) creation code later than wind(attractor). After that it worked.

Does the order of Composite.add() functions have any effect?

The image below shows the code when successful.

image


The image below shows the code when it fails.

image

Why is this happening? Is there a way to set this up myself?

@mariomadrid440
Copy link

Check label user
Is not a thermodinamical issue, at all

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