I would like to use Matter.js with my custom game loop, I followed instructions from here and added Engine.update(engine, 1000/60, 1); in draw loop, but nothing happens, just blank screen. Do I need to add tick method somewhere?
Here is my code:
window.onload = function () {
    // Matter.js module aliases
    var Engine = Matter.Engine,
        World = Matter.World,
        Bodies = Matter.Bodies;
    // create a Matter.js engine
    var engine = Engine.create(document.body);
    // create two boxes and a ground
    var boxA = Bodies.rectangle(400, 200, 80, 80);
    var boxB = Bodies.rectangle(450, 50, 80, 80);
    var ground = Bodies.rectangle(400, 610, 810, 60, { isStatic: true });
    // add all of the bodies to the world
    World.add(engine.world, [boxA, boxB, ground]);
    // run the engine
    //Engine.run(engine);
    draw();
    function draw(){ 
        Engine.update(engine, 1000/60, 1);        
        requestAnimationFrame(draw);
    }
};