VR Picking up long objects

Hi All,

This may be an easy fix but I can’t seem to find it.

I have built a VR unity scene in which I pick up a long pole but when I try to pick it up it pops to the pivot point.

I want to be able to pick it up at any point with no popping and have it swing at the pivot of the hand. Also I would like to be able to grab it with the other hand to help steady it up , like lifting a long pole in real life.

Any help would be amazing

The behavior depends entirely upon the code you’re using for object interactions. It seems that when you pick up an object, the object transform.position is set to the same position as the controller which would cause it to pop to the pivot point. If you want a different behavior, you’ll need to code it yourself. You’ll need to find the code that moves the object when you pick it up, and instead, not move it, and made it a child of the controller.

What you’ll probably want to do is have a separate transform that acts as an attachment point. The attachment point local transform will move to wherever you grab the pole. On grab, the pole will be parented to the attachment point, and the attachment point will be parented to your hand.

You could do the same thing with a second attach point to stabilize with the other hand, and then update the pole’s rotation to be some factor of each of your hands.

There are other ways to do this (if you wanted wobble on the pole for example), but this is the simplest.