Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Rotate object by dragging, but spin object on swipe

Discussion in 'Physics' started by jeremydulong, Oct 26, 2018.

  1. jeremydulong

    jeremydulong

    Joined:
    Nov 9, 2017
    Posts:
    11
    Hello,

    I have a roulette wheel type object that I'm trying to allow the player to spin slowly by dragging on, but if they were to swipe, say to the left, quickly then it would apply a lot of torque and spin for a bit before stopping. What is the best way that I can determine weather the player is simply dragging to rotate or they want to give it a good spin?
     
unityunity