Is it possible to make an actor to generate both overlap event and hit event depending on which actor is in contact?

I’m sorry for the long title. I couldn’t find other words than that.

I’m building a VR simulator right now.

Here is the current condition.

  1. I built “B” to snap to “A” when overlapped.
  2. I also built “A” to be able to be painted using render target and linetrace.
  3. Condition 1 requires “A” to be set to “OverlapAllDynamic” but Condition 2 requires “A” to be set to “BlockAllDynamic”.

I want both Condition 1, and 2 to work at the same time.

I tried changing Collision sets one by one and tested it but couldn’t figure out how to make it happen.

Is it even possible to achieve it? If it is possible could anyone give me a guidance or at least a hint?

Just add a new collision volume (box, sphere, etc.) component to the actor, adjust the collision settings to your liking and choose which one to use on different conditions :innocent:

You can use the Component Overlap Actors and On Component Hit nodes to detect such events for specific components!


Oh the title led me to think that your objective was something else. You can also use the Set Collision Response to Channel or Set Collision Response to All Channels nodes to achieve your goal!

Hope these help :blush:

2 Likes

Thank you so much for your reply!

However, I just tried adding a Capsule collision to “A”(Steel_Strand) and switched On component Begin Overlap from (Steel_Strand) to (Capsule) and it doesn’t work… :sob:

The screenshot above shows the BP I made to make “B”(BP_Jack2) snap to “A”.

Is there something else I should change?

Why don’t you just… add that from the Components window :rofl:

Anyways check my edit :wink:

I checked your edit and immediately applied it to my BP and it WORKS!!!

Thank you so much for your help. :laughing:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.