-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
player A duplicates player B object being held #5
Comments
That's weird, for me the door opens really easily. In fact I can shoot it with a gun and it will bounce open.
That might be related to this VRTK issue perhaps: ExtendRealityLtd/VRTK#1866
I'll see if I can replicate that. Haven't seen that behavior before. Could you give some more detail? |
Hi, sorry for the delay in getting back. I tested again, basicly my friend picks up the gun, i dont see it in his hands, however, i seem to be holding the gun... ill do some more testing soon... i think its some kind of ownership issue maybe?? ..its strange... the green cubes work fine (i can see him holding it), but the gun, he picsk it up, and i can see it in my hand and not his. I cant seem to see any differnece between the cube and gun that would cause this?? |
ok, have played around a little more, found a difference with the green cube and gun.
Im strugging to find a setting to still share the gun location when its picked up... and still unsure why the other player on the network can see the gun in his hand and not mine : ( |
I still haven't been able to reproduce this problem locally, I'll have to set up a second system. But the cube and the gun are indeed treated differently. That's done on purpose to show the different GrabAttach mechanisms that VRTK supports. The gun gets made a child of the controller so there's no need to share it's location across the network because the controller is already tracked! The problem you're seeing if that it gets attached to the wrong hand somehow. Did you perhaps make any changes to the Avatar model or the setup scripts? |
Hi, I havent made any changes to the model or setup scripts. Here are the details of my tests just now: result: Player 2 can not see any gun in player1's hand, but when looking at his own hand, he can see the gun... he can not shoot... however, when player1 shoots, player2 can see the bullet come out of player ones hand as it should When you pause unity, and look in Hierachy, if you click the gun, you can see it is a child of player2's hand now (and nothing is in player 1.. the player for the unity running project is player 2) My thoughts: |
Hi,
I tested out last night and worked great... my friend had an issue where his grip didnt work for his right controller (but that may be a separate issue anyway, or may be a fault with his controller), also, the door is locked closed (but i guess that is a puzzle thing maybe)?
Only issue i noticed, was when my friend picked up the gun... i was suddenly holding a gun also... same for a green cube (and probably other objects)
I havent had a chance to look into the reason yet, but let me know if you have any ideas
The text was updated successfully, but these errors were encountered: