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

Arcade Body circle separations are incorrect #6963

Closed
samme opened this issue Nov 23, 2024 · 1 comment
Closed

Arcade Body circle separations are incorrect #6963

samme opened this issue Nov 23, 2024 · 1 comment

Comments

@samme
Copy link
Contributor

samme commented Nov 23, 2024

Version

  • Phaser Version: 3.85.0 to 3.87.0, 4.0.0-beta.2

Description

The separation step (i.e., repositioning) in separateCircle() seems incorrect. When body1 is pushable, body2 isn't repositioned, and the separation distance is too small. The result can be that separation takes several steps instead of one, or that separation never happens.

Example Test Code

Additional Information

The else if logic looks faulty.

@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

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

No branches or pull requests

3 participants