Hello everyone…I hope you are all fine.
I have a programming question. Sometimes some students use cheap commercial virtual reality glasses that contain only lenses without joysticks, remotes, or control buttons, and they have a point in the scene by pressing the interactive codes in the scene. Is it possible programmatically when the point is fixed for a certain period? (two seconds, for example) on something that the code works, that is, it acts as a pressure on the thing
Thank you
Yes, I believe that you can! Here is an example! (Also I’m sorry if it doesn’t work I haven’t tried it using VR glasses but I think it will work! This is how I usually do it using Coblocks, but I don’t know how to do it with TypeScript. Hope this helps!
thank you for your reply
I meant to control the cursor that appears in the VR mode by coding in coblocks
Thanks for this problem, @YasminJamalZaqout - it was a nice challenge.
Gazed-based triggers are common for mobile and simple VR headsets. A reticle or dot in the centre of the screen is used as a cursor.
This example uses a countdown of 3 seconds before displaying an animation, then resets the object afterwards - it’s a rather complicated example, and there could be simpler actions. Feel free to remix it:
Hope this helps! Let me know if you have any further queries about this. If this solves your problem, please mark this post as the Solution.
Many thanks,
Geoff @ TechLeap
Thanks for your help