phaser icon indicating copy to clipboard operation
phaser copied to clipboard

Matter Pause Issue | 3.85.0-beta.2

Open philipgriffin opened this issue 6 months ago • 0 comments

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.

philipgriffin avatar Aug 18 '24 22:08 philipgriffin