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

Matter Pause Issue | 3.85.0-beta.2 #6892

Closed
philipgriffin opened this issue Aug 18, 2024 · 1 comment · May be fixed by jonesrussell/nishman#6
Closed

Matter Pause Issue | 3.85.0-beta.2 #6892

philipgriffin opened this issue Aug 18, 2024 · 1 comment · May be fixed by jonesrussell/nishman#6

Comments

@philipgriffin
Copy link

philipgriffin commented Aug 18, 2024

Version

  • Phaser Version:^3.85.0-beta.2
  • Operating system:Windows/Android
  • Browser: Only tested in Chrome

Description

Matter JS pausing for physics bodies appears broken. When pausing the game using this.matter.pause/resume(); physics appear paused but are not. Resuming results in the physics bodies jumping to the position they were intended to be at.

Example Test Code

https://phaser.io/sandbox/1ak3C6pp
https://phaser.io/sandbox/WebdoebN

Additional Information

Steps to Reproduce

  1. Press space to pause.
  2. Press space to resume.

Expected outcome:

Physics body resumes from paused position.

Actual outcome:

Physics body jumps to position as if it were not paused.

@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
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants