Phaser: Update Matter.js?

Created on 15 Aug 2018  路  7Comments  路  Source: photonstorm/phaser

Phaser 3 is currently using Matter.js v0.13.1, which is roughly a year old. The latest release is 0.14.2, which was released in June of this year. Is there any reason not to update this in Phaser?

Easy Medium

Most helpful comment

Matter has now been updated to 0.14.2.

All 7 comments

I'd like to see it updated too. I'd also prefer Matter to be brought in via NPM, and simply aliased to the Phaser namespace.

Yes, I definitely agree with the point about npm. I'm still not sure why it was done that way considering there are some other external libraries in the package.json.

Because we include a load of optimization fixes that the current Matter version has not merged yet.

I'll see about merging the changes from 0.13.1 to 0.14.2 in, but I'm sure we've got most of them covered already.

@photonstorm Thanks for the clarification, I wasn't sure if that was the case or not.

may i know if the new matter.js integration will include Body.setParts() ?

just to clarify: including Body.setParts() means it will attach Phaser.Physics.Matter.Sprite to another Phaser.Physics.Matter.Sprite, making them move together

Matter has now been updated to 0.14.2.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

samme picture samme  路  3Comments

SKEPDIMI picture SKEPDIMI  路  4Comments

MarkSky picture MarkSky  路  3Comments

rootasjey picture rootasjey  路  3Comments

halilcakar picture halilcakar  路  4Comments