I am building for GearVR. Could someone please guide me to set up a Line Trace in Blueprint so the user can interact with objects in the scene with it’s gaze?
I am using a blank project, not a First or Third person template. Should I first set up a Character and a GameMode for it to work? Or can I do it without a Character? Performance is of the most importance.
Thanks a lot!
Hi there! I am an intermediate user, but I think you would line trace like you normally would as mentioned here https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/UseRaycasts/Blueprints/index.html
And just enable HMD as mentioned here Head Mounted Display | Unreal Engine Documentation
Also going through this: https://docs.unrealengine.com/latest/INT/Platforms/GearVR/
Thank you! I was able to get this working.
I am not sure if this is the most direct or efficient way of doing it, but I´ll post the steps in case anyone else is searching:
- I first created a Character and GameMode following this tutorial: [Unreal Engine 4 - Making An FPS Actor From Scratch - YouTube]
- I created these nods inside the Character blueprint
- I activated these settings in the Character Details panel:
- I created the Line Trace in the Character blueprint, following the documentation PixelBrix provided here, with a small modification:
Again, this may or may not be the most efficient way, so if anyone more experienced wants to share a better solution, I am all eyes.