Search Unity

GearVR -- Objects Disappear on Animation Start

Discussion in 'AR/VR (XR) Discussion' started by stevenbrent, Mar 15, 2016.

  1. stevenbrent

    stevenbrent

    Joined:
    Nov 22, 2015
    Posts:
    25
    [ Unity Version 5.3.2f1 OSX ]

    I've got a simple 3D cube object which animates (rotates) when the player object hits a Box Collider (Trigger) elsewhere in the environment. It works fine in Unity but on my GearVR, the object just disappears when the animation starts.

    The code I'm using for onTriggerEnter is just setting the animation enabled property to 'true' (having been initially set to 'false' on Start()).

    Any suggestions on where to look for a solution?

    Thanks.
     
    Last edited: Mar 16, 2016
  2. stevenbrent

    stevenbrent

    Joined:
    Nov 22, 2015
    Posts:
    25
  3. stevenbrent

    stevenbrent

    Joined:
    Nov 22, 2015
    Posts:
    25
    Yay, there is a solution on the page I linked above: changed the rotate interpolation from Euler to Quaternion, and now the object doesn't disappear. It is doing a weird easing thing as it rotates, but I think I can figure that one out :)
     
  4. stevenbrent

    stevenbrent

    Joined:
    Nov 22, 2015
    Posts:
    25
    ...looks like the rotation weirdness has been fixed in the new beta! So I can go back to using Eulers, I guess....