cancel
Showing results for 
Search instead for 
Did you mean: 

Moving Oculus controller back and forth(along the z axis)

AliHammza
Honored Guest
Hey,
I have written a script to pick an object with a rigidbody component by the ray casted from the controller and move it around. 
I parent the object to the controller to move it in the scene then. However, I can not move neither the controller nor the object in the forward or backward direction. I can move it up and down or in a circle but I also want to move it along the z axis. 

If anyone could point me in a right direction or help me with this, I would greatly appreciate it!

Thanks in advance.

12 REPLIES 12

AliHammza
Honored Guest
This looks very different. I'll try to write a C# script for unity based on this but i'm not sure if it work lol.
Thanks a lot tho

Anonymous
Not applicable
See if that works out. I might refactor this blueprint into proper C++ code somewhere in the next few weeks.

AliHammza
Honored Guest
Yeah, I'll try that. Also, will e great if you could let me know, if you refactor it into a c++ or c# code.