You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.checkWorldBounds() calculation should be called when reseting to avoid flickering
The text was updated successfully, but these errors were encountered:
lukasharing
changed the title
Body Center Update is wrong
Body Center Update is wrong when collideWorldBounds is set to True
Jan 24, 2022
lukasharing
changed the title
Body Center Update is wrong when collideWorldBounds is set to True
Body Center is wrong when reset from new position
Jan 24, 2022
lukasharing
changed the title
Body Center is wrong when reset from new position
Body Center is wrong whenreset from new position and collideWorldBounds is enabled
Jan 24, 2022
lukasharing
changed the title
Body Center is wrong whenreset from new position and collideWorldBounds is enabled
Body Center is wrong when reset(x,y) and collideWorldBounds is enabled
Jan 24, 2022
I guess this should be made automatically when you reset, I know you can fix this by using checkWorldbounds, but doesn't seem correct if have to do it by hand. Because when it updates, world bounds are checked, so that frame is a flicker.
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.
https://github.com/photonstorm/phaser/blob/d67c93646cbfe8ba5997954f8af29a8f3f9e8e91/src/physics/arcade/Body.js#L1393-L1395
this.checkWorldBounds()
calculation should be called when reseting to avoid flickeringThe text was updated successfully, but these errors were encountered: