Skip to content

Instantly share code, notes, and snippets.

@lonekorean
Created June 10, 2018 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lonekorean/7e3f31e5325c121e3df4edbe5dd34cc9 to your computer and use it in GitHub Desktop.
Save lonekorean/7e3f31e5325c121e3df4edbe5dd34cc9 to your computer and use it in GitHub Desktop.
Creating hexagons in Matter.js
return Matter.Bodies.polygon(x, y, 6, radius, {
// same code from before...
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment