Download

how to check what component caused a collision

I’ve got an actor that’s a hand which also has a collision sphere within it to signify its grabbing reach, but when the hand is used to push a button the collision sphere pushes it before the hand reaches it, is there a way to check what component had caused the collision so I can not activate the button if the component is the collision sphere?

You can check it with ComponentOverlapComponents, but it’s messy ( just tried it ). Better way is to setup custom collision types, that way only a hand can press a button:

[quote=“ClockworkOcean, post:2, topic:144733”]

You can check it with ComponentOverlapComponents, but it’s messy ( just tried it ). Better way is to setup custom collision types, that way only a hand can press a button:
https://youtube.com/watch?v=QQvHZLB4CTU[/QUOTE]

thanks, I’ll watch the video and get back

ok, that video seemed to overcomplicate things, I ended up just giving the component I wanted to ignore a tag and then checked if the component causing the collision had that tag or not