x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Set up a Line Trace from HMD (GearVR)

Hi, 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!

Product Version: UE 4.10
Tags:
more ▼

asked Mar 20 '16 at 08:01 PM in VR

avatar image

elTomkinson
22 5 5 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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 https://docs.unrealengine.com/latest/INT/BlueprintAPI/Input/HeadMountedDisplay/index.html

Also going through this: https://docs.unrealengine.com/latest/INT/Platforms/GearVR/

Would help Happy unrealing.

more ▼

answered Mar 20 '16 at 09:04 PM

avatar image

PixelBrix
26 1 1 1

avatar image elTomkinson Mar 24 '16 at 08:59 PM

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:

  1. I first created a Character and GameMode following this tutorial: https://www.youtube.com/watch?v=tLSyvQsDNnM

  2. I created these nods inside the Character blueprint alt text

  3. I activated these settings in the Character Details panel: alt text

  4. I created the Line Trace in the Character blueprint, following the documentation PixelBrix provided here, with a small modification:

alt text

It works!

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.

Thanks!

capture.png (76.7 kB)
capture03.png (10.7 kB)
capture02.png (198.7 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question