I am trying to slow my character’s velocity only once they hit the water after jumping from a ledge, hill, or any height. The character hits the bottom of the water very fast, rather than a smooth, slow entry. My character currently slows down once walking into water, but when we gain velocity, they smack the bottom very fast. How can i fix this?
Hi there, welcome to the community forums.
Well depending on the setup choices and answers can vary, but a straight forward approach used is to on the moment of water detection (overlap or more likely contact), you can read the character’s current velocity and apply damping or clamping to reduce excessive speed. I would personally would clamp first then dampen if necessary.
A common approach is to only apply this when the velocity is above a certain threshold (fast falls or jumps) and then scale the reduction based on how fast the character is moving.
A better more advanced approach is to write a custom movement mode as water entry generally before handing over the movement mode to swimming but think clamping and damping would already solve the problem on your case.