Laser beam for motion controller bugged 50% of the time.
I m having a really obscure issue. I set up a system to have a laser beam coming out of my motion controller vive by pressing the right trigger. When I lanched the Vr preview the laser would work approximately 50% of the time. I attached a point light where the laser collide with an object. The point light is always working and visible when I press the trigger. The code behind the laser (which trigger an action on different actor blueprint) is always working, but the visual laser works randomly. I lanch the editor and it will work, then launch it again and won't work. Sometimes after pressing it 10times it will work and sometimes after trying to press 100 times it will still not work. This is unlogical to me. I don't know if someone went through this kind of issue already.
Thanks in advance.
[Edit: We found the solution for the issue, was due to the variable booleen. But I have still an issue of the beam being laggy, there is a delay when I move the controllers, the beam follow it up with a small delay, any clue from where it could come? Maybe due to the event tick? ]
I have experienced similar issues with 3D Widget Interaction.
you could try to hook only the beam up to the Event Tick after the Branch, using the Vive Right hand mesh data, just to see if it works like that.
answered Mar 04 '17 at 12:42 PM
What happens if you set the visibility of the beam from the "Enable Beam Right Hand" value? Does the beam show up every time or still the same issue?
answered Mar 04 '17 at 12:46 PM
So I set up the variable Enable Beam Right Hand "true" and then added the point light visibility to the event "Press Trigger" (so it doesn't show it continually at the beginning of the game) and it's working now every time. Cheers mate!! But I still don't understand why having this variable "false" at the beginning and then making it true when the trigger is press was randomly showing the laser or not. So so weird. Do you have a clue? But thanks for the tip, helped me a lot!!
answered Mar 04 '17 at 02:02 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here