Announcement

Collapse
No announcement yet.

Line trace question. Can they ignore components or have double hits?

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

    Line trace question. Can they ignore components or have double hits?

    https://imgur.com/vh6jULV

    Have a bp with two box colliders. A little one inside a big one. Is it possible for line trace by channel to hit the big one then hit the small one? Or if not, is it possible for a line trace to ignore the big one and just his the smaller one?

    Thanks

    #2
    Hi Jack,

    to answer the first question: i don't think that's possible, but you could try starting a new trace at the last trace's hit location + some amount. I doubt this works though.

    Second question: take a look at collision channels in the project settings (https://docs.unrealengine.com/en-US/...ype/index.html).
    You can add a custom collision channel to your big collision box and use a line trace by channel (https://docs.unrealengine.com/en-US/...nel/index.html).

    Hope this helps.
    Working on a multiplayer fps game and a multiplayer city building game!

    Comment


      #3
      Multi line trace by object
      https://docs.unrealengine.com/en-US/...ect/index.html

      Comment


        #4
        Originally posted by Rev0verDrive View Post
        Thanks a lot. Got it working perfectly!

        Comment

        Working...
        X