Download

How do I detect Collision with an Actor Component for the Actor it's attached to? C++

Hey guys, wondering if I can get some advice on this:

I would like a hit detection actor component that gets the current mesh of the Actor it’s attached to, and detect collisions + returns the tag of the object that it collides with (if any).

This way, I can have certain things happen based on tags - like if player collides with an object tagged ‘Obstacle’, then take damage or die.

Where can I find info on how to achieve all these things? Are there any youtube tutorials directly relating to what I’d like to do?
So far, I’ve not been able to find anything relating to Overlapping or OnHit for Actor Components, only Actor components, which seems different to what I am looking to do?

Any help or pointers on where to find the relevant info would be massively appreciated!

Thanks!