Download

Move smoothly out of water on sloped bank

It is quite glitchy to swim out of water when the water’s edge is a sloped bank. I think the default UDK swimming implementation attempts to do a jump when it detects a water’s edge, but that doesn’t work very nicely for sloped banks (like a beach shore).

Has anyone else noticed this, or have any ideas how to make it smooth?

Thanks in advance.

I don’t know for sure how to stop it, but I think you can change the behavior in PlayerController state PlayerSwimming event NotifyPhysicsVolumeChange. I see a lot of messing with Pawn.velocity.Z and some bUpAndOut flag.

Thanks@Nathaniel3W. I’ll take a look.