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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Why does CapsuleTraceByChannel use ETraceTypeQuery instead of ECollisionChannel/Why don't default ECCs show up in XTraceByChannel?

So I'm trying to trace against the pawn channel to see if things are blocking against Pawn, but as far as I can tell any of the blueprint trace functions like "CapsuleTraceByChannel" will only let you use custom trace channels, not any of the defaults.

I can see that ConvertToTraceType exists in the engine, but it's not accessible by blueprint.

Does anybody have any idea why the default collision channels can't be used in channel traces?

Product Version: UE 4.8
more ▼

asked Dec 16 '15 at 05:50 PM in Blueprint Scripting

avatar image

703 40 32 123

avatar image mrooney Dec 16 '15 at 08:25 PM

So looking into this more it looks like it's because TraceTypeMappings and ObjectTypeMappings are treated separately in COllisionProfile.cpp, which makes sense, but I don't get why CapsuleTraceByChannel would only give you access to the subset of channels that are in TraceTypeMappings.

It seems like either ObjectTypeMappings should be included in TraceTypeMappings since you may want to trace against those channels as well as search for objects of that type, or CapsuleTraceByChannel should change back to using ECOllisionChannel.

As an example of my use case, I am trying to dynamically assess if a Pawn can fit somewhere in a procedurally generated area so I am trying to trace that pawn sized object on the pawn channel in that area so anything that blocks pawn will hit.

(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