Author Topic: Dragging Object Too Slow  (Read 2061 times)

Zodd

  • Guest
Dragging Object Too Slow
« on: October 08, 2013, 11:56:47 AM »
Hello! So I am using UIDragObject in a way where the object you touch is the object you are dragging. The issue is, the button does not stay under my finger when moving it at a moderate speed. I need it to remain under my finger even at very high speeds due to the nature of my game. I am not using any drag effects. I looked over the script briefly to see if there was anything I could change that would adjust the speed, but I did not see any obvious values to change, and don't want to do changing things on a whim. Is there some type of value in the script that I can adjust that will cause it to keep up with my finger better? I imagine that right now it is using some nice looking transition algorithm so that it moves smoothly, but since the button is under your finger and needs to stay that way, speed > fluency in my case. It works flawlessly with the mouse, but not so much with touch :/

Thanks,
Zodd
« Last Edit: October 08, 2013, 12:14:41 PM by Zodd »

Zodd

  • Guest
Re: Dragging Object Too Slow
« Reply #1 on: October 08, 2013, 12:28:00 PM »
After looking at a popular game with similar mechanics, it looks like their object also trails, so perhaps it's just a problem with touch latency in general. Unfortunately this means I have to rethink how my game functions :'(

Zodd

  • Guest
Re: Dragging Object Too Slow
« Reply #2 on: October 08, 2013, 12:40:16 PM »
On a similar note, I noticed that the drag seems to move the object when I am at the edge of it's collider, is there any way to make it move from where ever it is I touch on the collider? This would just make it more precise and might actually solve my problem, as I think it could be being caused by this, and not the latency... I know I could just make the collider smaller, but I am using the collider for other event triggers, and making it smaller would mess that up...

Zodd

  • Guest
Re: Dragging Object Too Slow
« Reply #3 on: October 08, 2013, 01:14:16 PM »
Well, I just made them a bit smaller, it seems that collider size on the phone, due to the decreased accuracy of touch perhaps, seems larger than it does in unity. I can sacrifice the size a bit and it still seems to work fine, while being more accurate. Now I just have to find the sweet spot. Sorry for all of the posts, I'm notorious for answering my own questions most of the time, but I suppose writing out my thoughts helps me in that process  ;D