Skip to content

Arcade Physics closest() and furthest() return null when called without a targets argument #7111

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

Closed
samme opened this issue Apr 16, 2025 · 1 comment

Comments

@samme
Copy link
Contributor

samme commented Apr 16, 2025

Version

  • Phaser Version: 4.0.0 RC1

Description

When closest() or furthest() are called without a targets argument they always return null.

Example Test Code

https://phaser.io/sandbox/Fok2HsMH

Additional Information

#7104

@photonstorm
Copy link
Collaborator

Thanks for opening this issue, and for submitting a PR to fix it. We have merged your PR into the master branch and attributed the work to you in the Change Log. If you need to tweak the code for whatever reason please submit a new PR.

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