Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
hasan_nagaria's avatar
hasan_nagaria
Honored Guest
6 years ago

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.