MouseConstraint

MouseConstraint

new MouseConstraint()

The `Matter.MouseConstraint` module contains methods for creating mouse 约束. Mouse 约束 are used for allowing user interaction, providing the ability to move bodies via the mouse or touch. 参见随附的用法[示例](https://github.com/liabru/matter-js/tree/master/examples).