Download

How to detect collision, when object moved?

Hello.

I have situation, when I need to detect hit/overlap for walls and some objects, that can be moved.

In my case wall has static position and bed can be moved by SetActorTransform. I need to detect, when bed and wall are collided.

Nothing of ActorBeginOverlap, Event Hit works. How to detect this situation?

For example:

http://s6.postimg.org/708x0rc35/screenshot_82.png

You say you tried OnHit and it didn’t work? May I see how you used it?

Did you set ‘Simulation Generates Hit Events’ to true?

367eb4b08465b1009c9578566b93dc74b584a629.png

There is some wall, that is BP:

http://s6.postimg.org/ioc5msfzl/screenshot_83.png

http://s6.postimg.org/952gtbshd/screenshot_84.png

And started game - nothing of that messages showed:

http://s6.postimg.org/v5it9yb5d/screenshot_85.png

There is interesting moment - when I moving furniture (in last image - bed) - Actor Collision for furniture object is disabled and wall collision is enabled. When bed is placed by mouse click - beds Actor Collision switched on. IE, after furniture moved - it’s completely placed and beds Actor Collision enabled. In this step, when beds Actor Collision enabled, I expect to catch fired Hit event…

Did you try to turn on Generate Overlap Events tick?