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

Open
samme opened this issue Nov 23, 2024 · 0 comments
Open

Arcade Body circle separations are incorrect #6963

samme opened this issue Nov 23, 2024 · 0 comments

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. If body1 is pushable, body2 isn't repositioned, and the separation distance is too small. The result can be that separation takes a dozen steps instead of one, or that separation never happens.

Example Test Code

Additional Information

The else if logic looks faulty.

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

1 participant