Version
- Operating system: Windows
Description
When a MatterJS body has its scale set to -1, the detected collisions have supports that seem to always just clamp directly to the shape's vertices instead of where the collision occurred. This appears to be a bug with MatterJS as a whole, as I was able to reproduce it using exclusively MatterJS, but it appears MatterJS is pretty much unmaintained and Phaser has its own implementation of MatterJS built in anyways so I figured it would be better to open the issue here.
Example Test Code
https://codesandbox.io/p/sandbox/rsy4lz
Click to drop a rectangle on top of the pentagon; red dots will appear at the collision. Click the button at the top to invert the scale X of the pentagon to see the red dots will not appear at the collision anymore.
Additional Information
Version
Description
When a MatterJS body has its scale set to -1, the detected collisions have supports that seem to always just clamp directly to the shape's vertices instead of where the collision occurred. This appears to be a bug with MatterJS as a whole, as I was able to reproduce it using exclusively MatterJS, but it appears MatterJS is pretty much unmaintained and Phaser has its own implementation of MatterJS built in anyways so I figured it would be better to open the issue here.
Example Test Code
https://codesandbox.io/p/sandbox/rsy4lz
Click to drop a rectangle on top of the pentagon; red dots will appear at the collision. Click the button at the top to invert the scale X of the pentagon to see the red dots will not appear at the collision anymore.
Additional Information