phaser - v4.0.0-rc.4
    Preparing search index...

    Class MouseConstraint

    The Matter.MouseConstraint module contains methods for creating mouse constraints. Mouse constraints are used for allowing user interaction, providing the ability to move bodies via the mouse or touch.

    See the included usage examples.

    MouseConstraint

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    The Body that is currently being moved by the user, or null if no body.

    null
    
    collisionFilter: MatterJS.ICollisionFilter

    An Object that specifies the collision filter properties. The collision filter allows the user to define which types of body this mouse constraint can interact with. See body.collisionFilter for more information.

    The Constraint object that is used to move the body during interaction.

    type: string

    A String denoting the type of object.

    "constraint"
    

    Methods