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
Setting the scale property on a Matter gameobject doesn't adjust the size of the matter body object so the physics bounds are incorrect. Setting the scale via setScale/scaleX/scaleY works however.
It's possible that scale isn't a valid property on Matter gameobjects - looking at the Transform component of Matter gameobjects doesn't seem to include a scale property. However, the game we updated from Phaser 3.55.2 was using this property, and it seemed to work (though I can't verify it anymore). If it's not a property, I feel like it should be added to be consistent with out objects that have a scale property (makes tweening easier for example).
The text was updated successfully, but these errors were encountered:
Hi @Stever1388. Thanks for submitting this issue. We have fixed this and pushed it to the master branch. It will be part of the next release. Do test it out and let us know if you encounter any issues.
Version
Description
Setting the
scale
property on a Matter gameobject doesn't adjust the size of the matter body object so the physics bounds are incorrect. Setting the scale viasetScale
/scaleX
/scaleY
works however.Example Test Code
If you enable body debug in your Game Config with
then you should be able to see the issue with the following code:
Additional Information
It's possible that
scale
isn't a valid property on Matter gameobjects - looking at the Transform component of Matter gameobjects doesn't seem to include ascale
property. However, the game we updated from Phaser 3.55.2 was using this property, and it seemed to work (though I can't verify it anymore). If it's not a property, I feel like it should be added to be consistent with out objects that have a scale property (makes tweening easier for example).The text was updated successfully, but these errors were encountered: