Search Unity

SteamVR 2.0 AttachmentOffset for Throwable object

Discussion in 'AR/VR (XR) Discussion' started by Mesothere, Jul 17, 2019.

  1. Mesothere


    Sep 16, 2013
    Hi all,

    I'm working with the Steam VR 2.0 package. I have added an object of mine, which is an axe. As per the little boxes in the demo scene, I want this to be physically enabled and follow my hand around as it collides with the world. I have the following settings established:

    It behaves correctly - however, when I pick up the axe, the hand is grabbing it in that awkward position at the bottom, the axe is slightly floating above the fist. So - I am trying to use the "AttachmentOffset" property. You can see those white spheres along the shaft of the axe - those are to make the points easier to see. They are children of the Axe gameobject. I drag the one at the top of the axe, near the head, into the throwable "AttachmentOffset" property. However - this makes no measurable effect in game - the hand still grabs the very bottom of the object.

    Does anyone know how to get an offset working? It is crucial for my game.