Skip to content

Instantly share code, notes, and snippets.

@garganurag893
Last active November 16, 2019 13:21
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 garganurag893/555265ce6f11a35782de14dfbdbf7fd8 to your computer and use it in GitHub Desktop.
Save garganurag893/555265ce6f11a35782de14dfbdbf7fd8 to your computer and use it in GitHub Desktop.
import Matter from 'matter-js';
const Physics = (entities, {time, dispatch}) => {
let engine = entities.physics.engine;
Matter.Engine.update(engine, time.delta);
return entities;
};
export default Physics;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment