Hi,
I have drag mechanic in my game and I want to have same experience in all devices. I've done this before in another game engine and now that Unity gives us Dpi with Screen.DPI, it should be much easier to achieve, but I can't figure it out for the love of the god.
My theory is you have to divide the delta movement of touch with Screen.Dpi to normalize the movement and make it same across devices with different screen sizes and dpi's:
(touch0.deltaPosition.x / dpi) * SENSITIVITY * Time.deltaTime;
But this doesn't work. Would someone please tell me why?
I've done extensive search on this but surprisingly nothing much can be found.
Thanks in advance and regards.
↧