ValveSoftware / steamvr_unity_plugin

SteamVR Unity Plugin - Documentation at: https://valvesoftware.github.io/steamvr_unity_plugin/
BSD 3-Clause "New" or "Revised" License
1.04k stars 256 forks source link

Fetching finger curls from skeletal poser #956

Open skedaddleconnect opened 3 years ago

skedaddleconnect commented 3 years ago

Hello,

I've seen that it is possible to fetch a SteamVR_Skeleton_Pose_Hand from SteamVR_Skeletal_Poser.SteamVR_Skeleton_Pose, which provides the bone positioning and orientation of the skeleton set up in the skeletal poser.

However, this class doesn't contain members for finger curls, which is what I would like to get from the skeletons.

At the time of fetching the skeleton, the hand will be hovering over the game object that contains the skeleton poser.

Is there a way to get the finger curl values, or if not, a way to calculate them myself?

Thank you very much in advance.

zite commented 3 years ago

You can get curls from the skeleton action itself, but I don't think from a blended pose. SteamVR_Action_Skeleton has thumbCurl, indexCurl, GetFingerCurls, and other such methods.

skedaddleconnect commented 3 years ago

Hey, thanks a lot for the response.

I did take a look through the plugin and saw that only certain skeleton classes had the finger curl members, but the one's I'm retrieving don't.

I've seen that the SteamVR driver API only requires developers to provide a skeletal animation, and doesn't seem to require them to provide a curl value, so I was wondering if it was possible to know how SteamVR goes about calculating the curl, or a tip in the direction for how to do it?

Thanks again for taking the time to respond.