Ledge Collision Response with FirstPersonCharacter template (5.1)

Hello there!

I’m using the FirstPersonCharacter template to be able to run around my procedural created level.
Collision against the walls work fine, but not when getting to ledges of the terrain.
i played with various settings to no avail (it seems to get even worse and stick right to the ledge).
i hope you see what i mean in the youtube video: youtube link
the relevant settings can be seen here: imgur direct link

is it possible to fully solve this with the standard template?
if not, what are my options?

thank you for your time!
pinch_AT

as a note: this happens also at least on the stock first and third person template and their test lvls. same jitter, no sliding against the ledges…

probably a result of your perch ledge threshold being 0.
Try matching it to the radius of the capsule.

Assuming your issue is that the capsule is almost falling off the ledge.

Hello and thanks for your reply!

no, that’s not the issue.
“Can Walk Off Ledges” is disabled. i want the collission capsule to slide against the ledge like it does when pushing against the wall.
right now, trying different settings, it either gets completly stuck on the ledge till i turn 90° away from it, or it gets all bumpy…
here’s another video showing it a bit better https://youtu.be/0fYKFNOwee8
it’s like running against a jigsaw.
last seconds of the video shows a comparison of how it should slide against the ledge, like it does against the wall.

thank you!
pinch_AT

Again, you are past the ledge. Increase your Perch Radius so you don’t ever get past the ledge.

numerous different settings have been tried with no smooth experience.

this is with perch radius same as capsule radius:
asdf01
still saw-ish sliding if at all.

the only thing i have not noticed before is, that this jagging sliding happens to the left side more often than on the right side (if that makes sense).

also this: Issue with Can Walk Off Ledges false doesn't work right on his second post seems to be also my case.

thanks for your time!
pinch_AT

Can the value for the perch radius be more than the capsule size? Say, capsule radius x2 so that you “hit” the wall of the ledge?
Note that knowing how the character BP is made, I don’t think this will work, but it’s worth a try I think.

Otherwise you have to handle the ledge stop yourself. It’s easy enough. You just need to trace 1 capsule ahead for the floor, and prevent moving forward only by resetting the actor location to the same value on the correct axis.
It’ll take some experimenting, but I’m sure anyone can get it to work that way…

anything greater than capsule radius seems to have no effect.

i will try to handle it myself.

Thank you for your time and input!
pinch_AT

Yea, its because in c++ the trace happens at the center point of the sphel, so the control is only good up to that point and not before.

The proper way to address it would be to change the code in the character class so that fhe line trace for find floor happens at the edge of the capsule.

If you know enough coding its probably easier to do that. However it wont keep the issue from happening when you walk sideways.

To fix that, you have to change the trace location of find floor dynamically based on the direction of movement.