Jump to content

Moving verticaly or horizontaly


Recommended Posts

Yes with the mouse, I've seen input.allowVerticalDrag/Horizontal, but I mean allowing both vertical and horizontal without diagonal.


What I'am trying to do is dragging a block on x/y and stopping it when it hit another block (which can be dragging too).


I can do this by making the object follow the mouse (with input.onDown and some math), but I just want to know if there is a better (and easier) way to do this.



Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...