Matter.js Mouse Drag | Sololearn: Learn to code for FREE!


Matter.js Mouse Drag

ODLNT , maybe you can help? The Matter.js documentation has limited explanation on how to do stuff. Does anyone know how to "drag" a Matter.js shape across the screen. (Not with p5). All I got is that you use Matter.MouseConstraint.create(), and that's it. <script src=""></script>

5/31/2019 4:22:12 PM

Clueless Coder

1 Answer

New Answer


Edit: Found better example of mouse control at the liabru matter.js git hub repository