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

The use of Arcade Body.setGameObject method #6968

Closed
yongzheng7 opened this issue Nov 27, 2024 · 1 comment
Closed

The use of Arcade Body.setGameObject method #6968

yongzheng7 opened this issue Nov 27, 2024 · 1 comment

Comments

@yongzheng7
Copy link

Version

Phaser Version: 3.86.0

  • Browser:

Description

Replace gameObject. body only when it is not null. Is there an exception where a newly created GameObject cannot be linked to the body of the physics engine when it needs to be linked, or is it the case with the GameObject itself

Example Test Code

image

@photonstorm
Copy link
Collaborator

See #6969

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