- Home /
Reload a gun in VR with motion controllers
Hello,
I have a question. I want to implement reloading in my shooter game in oculus with oculus touch. I want it to be somewhat gunstringer (xbox kinect) game style. shake to reload.
I am trying to get linear velocity of the mesh attached to controller and check speed difference with previous frame and if it crosses a threshold I start reloading. But its not working fine.
I've two questions,
1 How most of the VR games do it?
2 How should I do it?
by shake I meant when player moves his motion controller up->down and then down to up back only once.
I solved it. Will post algo in answers and if someone wants I can upload a sample project of it too.
Your answer
Follow this Question
Related Questions
Renderer on object disabled after level reload 1 Answer
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers