Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upContributing more examples and basic drawable shapes #45
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


I've spent some time playing with react-game-kit and did reproduce several examples from the official matter-js repo. The single demo currently commited in the repo is really nice but makes it quite hard to build basic things like gravity demos.
Would be great to have basic shape elements, like a
Rectangle, aCirclethat can easily be drawn into the dom.Using SVGs is quite easy, properly rendering a pure div however is not trivial. I think we should keep all options on the table (even with Canvas on the corner) since it allows more creative usage of the lib.
Maybe we should go for several base classes (
SvgRectange,DivRectangle)?Air friction example (gif makes it slow):

Would you be interested in several PRs adding such components along several matter-js ready-to-go examples for a more batteries-included approach?