tired Posted July 28, 2020 Share Posted July 28, 2020 I tried to use handtracking in my own scene but the Grab class seems failed to get updated state code. I have notice in sample scene the event doesn't have a parameter on Unity Editor GUI. But in my own scene there is always one. Is this causing the issue by overriding the state code from GestureProvider? I use the player prefab provided by SteamVR, and I put GestureProvider under it's VRCamera. The camera tracking works fine. Link to comment Share on other sites More sharing options...
zzy Posted July 28, 2020 Share Posted July 28, 2020 Hi @tired Please select the OnStateChanged method in dynamic int (red box), not the one in static parameters (black box). The dynamic version will send actual state to Grab script, while static one will always send fixed state (in your case 0) to Grab script. Link to comment Share on other sites More sharing options...
tired Posted July 28, 2020 Author Share Posted July 28, 2020 7 minutes ago, zzy said: Hi @tired Please select the OnStateChanged method in dynamic int (red box), not the one in static parameters (black box). The dynamic version will send actual state to Grab script, while static one will always send fixed state (in your case 0) to Grab script. Thanks for the fast reply! Is there a good way to add colliders to fingertips? Link to comment Share on other sites More sharing options...
tired Posted July 28, 2020 Author Share Posted July 28, 2020 (edited) How do you make Grab work in Sample scene? Edited July 28, 2020 by tired mistake Link to comment Share on other sites More sharing options...
zzy Posted July 28, 2020 Share Posted July 28, 2020 Hi @tired You can select collider type to add collider by hand renderer, it adds collider for all joints. If you want to add colliders for fingertips only, you need to create custom scripts for this. You can reference hand renderer script for how to add colliders. Basically, you need create a few spheres colliders and update their position to match finger tip position. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now