VRPhysicsHands icon indicating copy to clipboard operation
VRPhysicsHands copied to clipboard

Don't render hands when hand tracking info not reliable.

Open A1igator opened this issue 4 years ago • 5 comments

the oculus hands do this and disable the mesh renderer and their basic physics capsules. I'm not sure how easy this would be for you since you don't seem to use mesh renderers.

A1igator avatar Jun 25 '20 04:06 A1igator

At one point I was trying to make it possible to hide the hands. My method was setting the root gameobject active/inactive. This unfortunately causes issues with the joints, and I found a fix but it's not entirely reliable. It didn't occur to me to just disable parts of the hand. That would be a much better method. Each hand does have it's own mesh renderer, but I don't reference it in the script. I will attempt to add the requested feature.

oxters168 avatar Jun 25 '20 13:06 oxters168

Pushed the change, let me know if there are any issues with it.

oxters168 avatar Jun 25 '20 14:06 oxters168

Works for me, but you should probably make it optional like oculus.

A1igator avatar Jun 26 '20 01:06 A1igator

Good idea, I pushed the changes with a couple of extra options.

oxters168 avatar Jun 26 '20 10:06 oxters168

You misspelled input, but outside that it's good!

A1igator avatar Jun 27 '20 01:06 A1igator