Collision with moving actor

I’m pretty new to UE4, so I’m sorry if this is way off. I’m not sure how you’re doing the rotation, but I guess it’s possible that you’re using a rotating movement component. According to the hover tooltip of the rotating movement component: “Collision testing is not performed during movement”.

I assume that could cause the problems you’re describing.

I created an object that rotates around a point. It is set to block everything, and then a moving user controlled actor hits the sides, or from the back it blocks correctly. But if I place the user actor in front of the moving object, the object simply passes straight through, without pushing the player actor aside. To me that looks like a bug, but since I can’t be sure I am wondering, if there is anything that I am missing here?

Best regards/
Mike

Hmm, maybe it is not doing a collision test (or supposed to) but it is still doing it. In which case it would still be a bug, because it is testing something it should not. Honestly though, I never saw the tooltip you mention. But to make things even more interesting, I attached a blocking volume to it that will block everything. If that also doesn’t test collision during motion, that too would have been a bug, since it’s sole purpose is to block things :slight_smile: But regardless, both do block even during motion. But it doesn’t when you are in front of it. My guess is that it moves into the object before testing anything, and so misses the block. But I will add a blueprint to the moving object, that actively checks for this, maybe that will help? But it strikes me, that I really should not have to do that in this case :/.

UPDATE:

Yes, you are correct, the tooltip does say so. However, I have an attached mesh on it, that does have collision checks active during motion. And they do test, just not in front of it. So yeah, I have to come to the conclusion that this actually is a bug. I said earlier that I thought it misses because it moves into the object. But I am not so sure about this now, I am beginning to lean to the possibility that it is because it doesn’t impose position changes on objects it hits. The other way around, i.e. me as a player hitting it, seems to work fine however. But when in front if it, there might be some confusion as to what is hitting what.

Dear Epic, if you spend time editing my header to not say ‘possible bug’ (which is fine with me) could you please also take the time to suggest what I might be doing wrong if it isn’t a bug? Just editing, and not commenting sends a very weird signal.

Hi Mithril,

I believe what you are seeing is related to this issue.

Objects moving through a player that is standing is a known issue that our developers are looking into. Ben provides a workaround that may work for you though. Let me know how it goes.

Cheers,

TJ

Hi TJ, thanks for the feedback. Unfortunately my issue is the one he mentiones in the very end of that thread: "So if you’re looking to have a moving mesh displace a character, you’ll need to actually apply velocity to the character based on an overlap event. I will look into doing this via Blueprints tomorrow and see if I can find a simple solution using this method. "

But still, it’s an idea. I’ll try that and see if it works. Gives me a reason to improve my blueprint skills :slight_smile:

Best regards/
Mike

HI Mithril,

Did the solution I linked work for you?

Hello TJ, It should work. But honestly I got inundated with other more important work tasks after the last message. So I haven’t had the time to deal with that issue yet. But I understand that you would like to close this for tracking issues, and that is OK with me if you do :slight_smile: I don’t want to take up valuable time from you. That said though, I think it could be a great addition if this particular case was automatically handled, because I would imagine it being a fairly common one. But that is just that… a suggestion :slight_smile: Many thanks for the reconnection, and suggestion TJ. And feel free to close this too. I would like to put your suggestion as an answer too, but I can’t do this because I think your post is a comment (or something)

Will do, but feel free to post back here and reopen the issue if it doesn’t work. Good luck with your project!

Cheers,

TJ