googlevr / gvr-unity-sdk

Google VR SDK for Unity
http://developers.google.com/vr/unity/
Other
2.71k stars 1.09k forks source link

[Question] How can I add a custom animatable avatar for the Daydream in Unity? #999

Closed cyrilzakka closed 5 years ago

cyrilzakka commented 5 years ago

I'd like to replace the Daydream controller in a VR environment with a hand/wrist/elbow combination whereby moving the controller moves the hand and clicking a button mimics a 'grasping' motion enabling the user to pick up items.

Does the GVR SDK support it? What are some resources for doing this for the Daydream specifically?

So far I've created my hand model, rigged it and added inverse-kinematics to it. How do I proceed?

Bonus: Since Daydream/Cardboard currently only supports one controller (even though the beta API supports 2), is it possible to switch from a left-hand to a right-hand model mid-game?

2348 commented 5 years ago

But I don't know

rusmaxham commented 5 years ago

We have a sample project called Daydream Elements that has a sample scene that demonstrates the use of different arm models. This scene also demonstrates visualizing more of the arm like I believe you are asking about.

It is possible to switch handedness in the System Dashboard. This page describes how to change a bunch of system settings. Handedness is at the bottom.

When your app is brought to the foreground again. GvrSettings.Handedness will update accordingly.