Character passes through moving object

Hello,

This isn’t exactly a bug and you could say it’s kind of a game specific problem but it’s something that should be handled by default in my opinion.

Basically a character can pass through a moving object when the character jumps at the opposite direction that the object is moving (as long as it’s not moving too slow).

Here is a simplified version of the problem that you can try in a clean project:

It’s just two boxes attached to each other.

Note: please do not suggest CCD or anything simple like that… it doesn’t solve the problem, this is something that needs to be fixed in the character movement component.

Hi TK-Master,

  • Does this occur in a clean, blank project with no additional content?
  • What are the exact steps you are taking to create both the player movement and the box movement?
  • What are the collision settings for your boxes and character?
  • Does this only occur at a specific angle or facing?
  • Do you have a sample project that I can take a look at?

Hey ,

The screenshot above should be all you need to replicate the issue (it’s just two attached boxes that are being moved over time via level blueprint) but I have uploaded a sample project for you (for 4.10 or later).

Just hit play and try to jump through the wall on the right, with a couple of tries the character will pass through, the angle or facing doesn’t matter as much as long as you are jumping at roughly the opposite direction that the mesh is moving.

The collision settings do not matter here, it’s something that needs to be fixed in the character movement component since it doesn’t seem to account for something like a moving platform very well (there are more problems with moving objects but this is the only one that turns out to be a pain to fix).

I would greatly appreciate it if you report this to the developers for further investigation, thanks in advance!

Hi TK-Master,

I was able to reproduce this on my end and have entered a bug report, UE-28610, to be assessed by the development staff.

Is the moving platform doing a sweep test or teleporting? If it embeds itself in the character the character might not be able to handle that perfectly.

Sweeping stops the platform from moving if I remember correctly and teleporting is the same (the character passes through) or in some cases worse.

At any case the moving platform is just a simplified example to make a point… my actual game has a moving ship (which is physics-based unlike the example I provided but the same thing happens) and the character can pass through parts of it when jumping at the opposite direction that the ship is moving.

The ship doesn’t even need to be moving that fast either, it’s fairly easy to make the character jump through it as long as there is some velocity involved.

Hopefully you guys can spend a little bit of time to improve the character movement component, it needs some more love :stuck_out_tongue:

There are other simple examples that I could potentially provide that demonstrate other various flaws with the movement component but for now I would be satisfied if this one gets fixed since it’s kind of important.

I read in the trello that you guys are working on improving the character movement replication as well which is good news, definitely need that as well.

Thanks for looking into this by the way! let me know if I can provide any more info.

Was this ever solved? This still happens.