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"

Collision Response not overriding previous set value

I have created a capsule which I will use for single line tracing on only one channel and do not wish the main actor to be blocked by the capsule.

To do this I set the collision responses to:

 CapsuleComponent->SetCollisionResponseToChannel(COLLISION_WEAPON, ECollisionResponse::ECR_Block);

In theory this would set all channels to ignore collisions and only the COLLISION_WEAPON channel (Engine Trace Channel 1) to be colliding with the object.

Unfortunately when I add the actor to the editor, all channels are ignored and the one I would like to be blocked is also ignored.

Any ideas of why this would be happening/solutions as I would prefer to define this in my objects constructor, rather than edit it for each object in the editor.

Product Version: UE 4.10
more ▼

asked Nov 13 '15 at 06:02 AM in C++ Programming

avatar image

32 7 7 8

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

1 answer: sort voted first

Don't worry, I figured it out. I just created a custom Collision Profile and used:


to set the collision properties to that collision profile.

more ▼

answered Nov 14 '15 at 07:39 AM

avatar image

32 7 7 8

avatar image Bertram.Sch Dec 14 '15 at 01:41 PM

Hello, could you give some more informations how you solved this?

avatar image hydroflax Dec 18 '15 at 09:16 AM

Hi Bertram,

In the constructor of the object you will define a component, as an example lets say that I have created a Sphere component which I only want to have events fire for the hit of custom Trace Channel.

I create it like so:

 SphereOverlapComponent = CreateDefaultSubobject<USphereComponent>(TEXT("SphereOverlapComponent"));

Then in the unreal engine under ___ you create a custom collision profile mine looks like this:

alt text

Then to have that component use that collision profile you define it like this:


Hope that helps.

collision.png (163.4 kB)
(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