Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Moving object with swipeon GearVR

Discussion in 'AR/VR (XR) Discussion' started by Amirbaa, May 28, 2016.

  1. Amirbaa

    Amirbaa

    Joined:
    Sep 1, 2014
    Posts:
    6
    Hi ! Trying to make something simple but it's killing me. I want to move floating object regarding to swipe direction. Script is :
    var movedownY = 0.0;
    var sensitivityY = 1;
    function Update() {
    movedownY += Input.GetAxis("Mouse Y") * sensitivityY;
    if (Input.GetAxis("Mouse Y") != 0){
    transform.Translate(Vector3.forward * movedownY);
    }
    movedownY = 0.0;

    And works great with mouse and pc on DK2, but on GearVR is acting really strange, it resets the mouse position leading to a huge jump in mouse delta. Any help and advice ?