Skip to content

Instantly share code, notes, and snippets.

@lonekorean
Created October 23, 2017 21:13
Show Gist options
  • Save lonekorean/c8a9665c1a23921435e34071832c1831 to your computer and use it in GitHub Desktop.
Save lonekorean/c8a9665c1a23921435e34071832c1831 to your computer and use it in GitHub Desktop.
Matter.js function syntax
// wrong
square.setAngularVelocity(0.1);
// correct
Matter.Body.setAngularVelocity(square, 0.1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment