Hello there,
I'm using your article in the Dev Guide to move AR objects with my finger and it works well but I have a little doubt.
https://developer.vuforia.com/resources/dev-guide/unity-drag-ar-object-screen-your-finger
I'm testing this with 5 different devices (iPhone 4S, iPad3, iPhone 6, HTC One M7 and Samsung Galaxy S4)
Working with iOS all seems to go really good and the picked object moves softly and "follows" the finger.
The problem comes when I use the same sample on the Android devices, as the picked object moves correctly but slower than the finger.
I've been checking unity3d and this forum and I can't figure how to normalize this movement.
Is this because of the different screen resolutions? (S4 and M7 are 1920x1080, iPad is 2048x1536, iPhone 6 is 1334x750 and iPhone 4S is 960x640)
In the example I see that you get the half screen:
float halfScreenWidth = 0.5f * Screen.width; float halfScreenHeight = 0.5f * Screen.height; float dx = screenDelta.x / halfScreenWidth; float dy = screenDelta.y / halfScreenHeight;
I figured out that if I get a 10% of the screen instead of the 50% on my android device it seems to work much softer but I haven't found a solution to fit on all the cases.
Could you please help me?
Thanks a lot.
Regards,
Bryan.
I don't have many Android devices, well just a Nexus 4 really, and have found the draging slower on Android too.
I got a post back saying that I need to apply + Time.DeltaTime to the calculation of movement in either the Update or FixedUpate methods to remedy it.
Have not had a chance yet, but might help you?