Hello. I’m new with phaser3. And I can’t find information regarding my question.
I need to restrict the object to be dragged everywhere, so user should be able to drag it only in particular zone.
I use matter. I use rectangular image.
Currently I’m able to drag it everywhere.
I implemented dragging in two ways, but none of them helped me.
I used mouseSpring and implemented that part by my self but in two cases I have different issues.
I also need to throw dragged object(that is why my first implementation is not ok, because my object is not able to inherit velocity from the mouse). WIth mouseSpring I’m able to do everything I need, but I can’t restrict dragging zone.
Could you please help me to find the proper documentation, example etc?