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"

How to create a Laser that draws a line hitting objects from controller (Gear VR)

I was following this guy for how to make a laser beam point out from the controller https://www.youtube.com/watch?v=6yEO4m0f7fU as the photo attached in here. For some reason when I actually export it to Gear VR and play move it the laser seem to be not attached to the GearVR inside the game and goes all over the place. In his tutorial is work well I don't know maybe it's about the different type of VR device.

Any answer will be appreciated,

Thank you

alt text

Product Version: UE 4.19
Tags:
laser.png (183.7 kB)
gear.png (1.4 MB)
more ▼

asked Mar 15 '19 at 11:35 PM in Blueprint Scripting

avatar image

BasGunnerz
8 1 3

avatar image Przemek2222 Mar 16 '19 at 09:47 PM

I'm not sure how that works on VR and how to use it here but you can use raycast .

Raycast goes as line and overlap first actor. (Or all actors if you use multi trace)

https://docs.unrealengine.com/en-us/Engine/Physics/Tracing/HowTo/SingleLineTraceByChannel

  • Draw line if you want to see this.

To draw line use Rama victory plugin https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/4014-39-rama-s-extra-blueprint-nodes-for-you-as-a-plugin-no-c-required

Or create C++ class and inherit from PDO Write comment so I will maybe find code with that (I have it somewhere).

you can use this for BP solution (I didn't tested that myself)

https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/58553-draw-a-line-between-two-points-in-game?87012-Draw-a-line-between-two-points-IN-GAME=&highlight=draw+line+between

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

0 answers: sort voted first
Be the first one to answer this question
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