Announcement

Collapse
No announcement yet.

(FP) How to find the coordinates of the place you're looking at

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    (FP) How to find the coordinates of the place you're looking at

    Id like to make it so that when you right click, you spawn an object at the place you're looking at.
    How would i get the coordinates of that place?
    Im Kinda new to this.

    #2
    Linetrace and location from hit struct

    Comment


      #3
      Originally posted by Muntrax View Post
      Linetrace and location from hit struct
      How do i get the location from the hit struct?

      Comment


        #4
        Just pull a pin off of the results and start to type break, you'll see location in it.

        Comment


          #5
          Is there anything else i need to do?
          I did line trace by channel and then spawn actor slowdown (just a sphere)
          Conected out hit with Break Hit result and connected location with spawn transfer on spawn actor but it isnt working corectly. The spawn position changes but it isnt spawning where im looking at.

          Comment


            #6
            Did you set correctly your line trace ? ( get player controller / convert mouse location to world space )

            Here are a link with same issue (solved at the end ) without linetrace https://forums.unrealengine.com/deve...mouse-position
            and a video with more explanations and uses: https://www.youtube.com/watch?v=b1_efR9hrT4

            Comment

            Working...
            X