Search Unity

Unable to grab object with Oculus Touch

Discussion in 'Physics' started by Bender_R, Mar 8, 2019.

  1. Bender_R

    Bender_R

    Joined:
    May 21, 2018
    Posts:
    115
    Hi there,

    I'm struggling with grabbing of an asset I bought (a rifle). When I put this rifle in my scene and try to grab it with Oculus Touch, it isn't working. I tried all different settings with a rigidbody being kinematic, or not, etc. Also tried adding some cylinders as childobjects as a sort of handlers. But when I grab these, I only grab the cylinders (which is working perfect) and the parent object isn't moving with it.

    The strange thing is that when I put a cube next to it with a Rigidbody it is perfectly working.

    What am I missing?

    Thanks!!
     

    Attached Files:

  2. Edy

    Edy

    Joined:
    Jun 3, 2010
    Posts:
    2,510
    Maybe the rifle doesn't have a collider?
     
  3. Bender_R

    Bender_R

    Joined:
    May 21, 2018
    Posts:
    115
    It indeed doesn't have a collider. I assumed that it was not nescessarily needed. I tried different colliders but still same behaviour. I can grab the handles, but the parent rifle isn't moving with it.

    Any other ideas? Thanks!!
     
  4. Edy

    Edy

    Joined:
    Jun 3, 2010
    Posts:
    2,510
    Is the collider marked as Convex?
     
  5. Bender_R

    Bender_R

    Joined:
    May 21, 2018
    Posts:
    115
    Oh, the issue was indeed the missing collider! I added a mesh collider first but didn't apply the right Mesh. Doing this fixed my problem.

    Thanks a lot!!
     
    Edy likes this.