- Home /
Question by
zeeshansiddiqui · Sep 25, 2018 at 04:43 AM ·
mobiletouchcontrols
when i drag my finger on mobile screen gameobject move left or right but not follow my finger
hello... Developers
my game-object follow my finger when i touch on screen but don't want this . i want that when i drag m finger then my game-object move left or right and not follow finger position or touch position
Comment
So you want to make the object make the same movement as your finger basically? In this case use an offset so you only add the movement delta to the object ins$$anonymous$$d of setting the position to the input position.
Answer by irfanK_21 · Sep 25, 2018 at 06:19 AM
You can find your answer here
https://answers.unity.com/questions/1223838/drag-gameobject-with-finger-touch-in-smartphone.html
thats not my answer i want to drag when player finger move on touch screen and not follow the finger