Search Unity

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?