matter-js icon indicating copy to clipboard operation
matter-js copied to clipboard

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

Open coderavel opened this issue 7 months ago • 1 comments

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?

coderavel avatar Jan 12 '24 10:01 coderavel

Check label user Is not a thermodinamical issue, at all

mariomadrid440 avatar Jan 17 '24 14:01 mariomadrid440