How to make items draggable and clickable?
问题 I'm new to Matter JS, so please bear with me. I have the following code I put together from demos and other sources to suit my needs: function biscuits(width, height, items, gutter) { const { Engine, Render, Runner, Composites, MouseConstraint, Mouse, World, Bodies, } = Matter const engine = Engine.create() const world = engine.world const render = Render.create({ element: document.getElementById('canvas'), engine, options: { width, height, showAngleIndicator: true, }, }) Render.run(render)