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"

Actor line trace without collisions?

How do i setup a actor, that a line trace can hit it, but will never resolve collisions for dynamic objects? Normally i would just do a raycast and test directly if the raycasts hits a specific type of actor.

I tried LineTraceForObjects, but i have no idea how to set a class type as a object type...

Product Version: UE 4.12
more ▼

asked Jul 31 '16 at 06:12 PM in Blueprint Scripting

avatar image

13 5 5 9

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

2 answers: sort voted first

Unreal engine has collision channels.

Each actor has a collision type. World static, world dynamic, pawn, character, vehicle, projectile are some of the default ones. You can add your own if you need to.

In order to set this up you need to set all your dynamic objects to ignore one of the channels (e.g. your newly created one) but while tracing search for only that channel.

Here's a blog entry from epic about it:


And the documentation page which goes a bit more in depth in regards to implementing it:


Hope this helps!


more ▼

answered Jul 31 '16 at 07:43 PM

avatar image

5.9k 291 86 293

avatar image Finalspace Aug 02 '16 at 05:26 PM

That blog entry is awesome thanks!

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

I'm not sure I understand the question fully so if you need more information feel free to ask.

You can setup custom collision object channels under Project Settings > Collision. Once there you can make unique channels that you can assign to actors or objects without worrying about other items in game automatically inheriting these channels.

Then whichever actor you want to get hit by a trace on that channel you setup its collision to overlap or block that channel type. Once you setup custom object channels you can also only trace on that channel.

more ▼

answered Jul 31 '16 at 07:45 PM

avatar image

536 33 22 39

(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