Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

You're welcome :D

Also......you probably know this but I wouldn't recommend using matter js's inbuilt renderer. It provides less tools to work with (on the graphics) . The optimal usage of matter is with p5 graphics I think.  Well, cheers and all the best!

(+1)

Thanks for the advice. Is it good idea to bind HTML or SVG element position with Matterjs objects/bodies?

For example, drawing circle or polygon as an SVG element (e.g <circle> or <path>) then move it using Matterjs.

(+1)

 As long as you can update your element position with a proper loop,  anything should work with matter js.  The documentation is well done, so you wouldn't have an issue with binding svg elements. That being said, it all boils down to the code you write. I can assure you that the physics engine works very well.