Root motion dive/roll, how to go off of legdges?

These gifs illustrate the problem:

Using a root motion animation, I cannot go off ledges (normal movement input does allow going over ledges, just the root motion cannot):
GIF 8-17-2023 10-59-06 AM

If I set the movement mode to flying, I can go over ledges, but I cannot find a way to keep gravity enabled (should continue moving down in Z )
GIF 8-17-2023 10-58-24 AM

Tried a lot of things but can’t come up with any solution. Tips anybody?

Your Collision Capsule size changes… big assumption here, but may it be that you enable crouching before executing the animation? If so that would explain why you can’t go over ledges that way. In the default settings, the CharacterMovementComponent disables going over ledges in crouch mode, the setting is located in CharacterMovementComponent → Character Movement: Walking → Can Walk Off Ledges when Crouching

1 Like

hey, thanks for that. looks like i forgot to update this with solution.

i ended up not using root motion so i cannot test your idea, but that could be right! I was enabling crouch which is why the capsule changed sizes.

but i ended up changing how it all works for other reasons. in order to make the length of the dive configurable through code, i set it up similar to a standard jump where you have a begin, looping middle, and end animations, and i am using the Launch Character rather than root motion.