Last active
November 16, 2019 13:21
-
-
Save garganurag893/555265ce6f11a35782de14dfbdbf7fd8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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