Forum Discussion
hasan_nagaria
6 years agoHonored Guest
First time VR developer frustrations and questions.
Im a new VR developer.
I have worked in Unity and unreal quite a bit so my game dev acumen is intermediate.
I have so far in a few hours managed to get a gun in my hand and shoot it and load a magazine (with the other hand) in it etc.
Q 1 - I am currently trying to find some information on how i can use two hands for a weapon?
I cant find anything and the very few things usually mention VRTK and I am barely used to the occulus sdk that I dont want to use vrtk especially since a lot of people keep telling me the version issues this and that. So while I will work my way up to vrtk, in the mean time what are some good learning resources and how do i get two hands on my weapon?
I dont expect code, just perhaps point me in the right train of thought? like what should i be thinking
i.e
1 - put two snap positions on the gun. (by the way how the heck do i get the snap offsets right without being able to see it in editor?! I mean putting empty game object at origin and editing etc works but its impossible, am I missing something here?!)
2 - once i have the gun in my right hand, and if i try to interact with it with my left hand. Check if gun is being grabbed already and snap hand on the available snap point?
how would this even work? Im so confused. How would my gun direction work. Would I keep holding the triggers or would I move control to one hand etc.
Q 2 - If I have a gun mesh with multiple attachments or moving parts would I put different grabbable components on all of them?
Thanks for reading any guidelines would help.
I have worked in Unity and unreal quite a bit so my game dev acumen is intermediate.
I have so far in a few hours managed to get a gun in my hand and shoot it and load a magazine (with the other hand) in it etc.
Q 1 - I am currently trying to find some information on how i can use two hands for a weapon?
I cant find anything and the very few things usually mention VRTK and I am barely used to the occulus sdk that I dont want to use vrtk especially since a lot of people keep telling me the version issues this and that. So while I will work my way up to vrtk, in the mean time what are some good learning resources and how do i get two hands on my weapon?
I dont expect code, just perhaps point me in the right train of thought? like what should i be thinking
i.e
1 - put two snap positions on the gun. (by the way how the heck do i get the snap offsets right without being able to see it in editor?! I mean putting empty game object at origin and editing etc works but its impossible, am I missing something here?!)
2 - once i have the gun in my right hand, and if i try to interact with it with my left hand. Check if gun is being grabbed already and snap hand on the available snap point?
how would this even work? Im so confused. How would my gun direction work. Would I keep holding the triggers or would I move control to one hand etc.
Q 2 - If I have a gun mesh with multiple attachments or moving parts would I put different grabbable components on all of them?
Thanks for reading any guidelines would help.
1 Reply
- MaxArchHeroic ExplorerHave a look at these videos (for Unreal) by VRMarco. Maybe the one with the two handed gun will give you some ideas.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 6 months ago
- 12 days ago