Hi Everyone,
I’m hoping someone can help me with a strange issue with this section of my code.
if (hasWarped == false && currentWarp > 0)
{
if (Input.touches [0].tapCount == 2)
{
Debug.Log (currentWarp);
Vector3 target = Camera.main.ScreenToWorldPoint (new Vector3 (Input.mousePosition.x, Input.mousePosition.y, 10.0f));
character.transform.Translate (Vector3.MoveTowards (character.transform.position, target, warpSpeed * Time.deltaTime) - character.transform.position);
removeLife ();
}
so ive been testing this on my phone (HTC 626) and when you double tap on the screen it moves the object to that position… all works fine on my device
But.
Yesterday i decided to give it a quick test on my partners phone (Samsung S7) and when i double tap on the screen the object moves to the tapped position but the next frame it snaps back to the old position.
I’m currently lost on what could be the issue here.
HELP ![]()