jorgejgnz / HPTK

Hand Physics Toolkit
MIT License
330 stars 32 forks source link

use air link #9

Closed frere97 closed 10 months ago

frere97 commented 3 years ago

there is a way where i can use air link to test the game? build everytime i want to play make things very slow to develop

jorgejgnz commented 3 years ago

You can use Quest hand tracking in Unity Editor by setting the input data provider (IDP) called OVRInputSwitcher as HPTK.leftEditorIdp and HPTK.rightEditorIdp in the HPTK singleton. Input modules where InputModel.inputDataProvider == null will use their corresponding default IDPs referenced in HPTK singleton.

OVRInputSwitcher acts as intermediary between an IDP exclusive for hand tracking (OVRSkeletonTracker) and an IDP exclusive for controllers (UnityXRControllerTracker) so you can use hand trakcing or controllers.

The following image shows the modifications needed in the HPTK singleton to be able to use hand tracking in Unity Editor (using Link).

handtracking-in-editor

frere97 commented 3 years ago

i've tried this, and still cant hit play and play in the editor, the camera don't recgonize my movements

jorgejgnz commented 3 years ago

Can you move your hands in PlayMode in a new scene using only OvrCameraRig and OvrHandPrefabs (without HPTK)?

jorgejgnz commented 10 months ago

This issue has received no response and will be closed.