Hi!
I'm trying to spin a bottle (I'm calculating the first pos and end pos of the mouse) and apply forces to it according to the 'swipe' length/time, just like in real life.
After the initial swipe, the bottle should keep rotating based on the force of the swipe, and then stop after few seconds.
I managed to get it rotating according to the swipe, but not force dependent (it wouldn't keep spinning afterwards).
Therefore, I hope you could help me here.
Thanks!
↧