Transform.y Skip

What i want to do is when i reach a certain y with my player transform i can skip a tiny amount(ie)
If i’m almost under water coming from above it would move the transform just under the surface instead of right where you can see under the water and over the water at the same time. Then if im coming from under water push me slightly above the surface :smile: I hope that made sense. lol

hm… tricky. I guess you should use the Y-velocity of your object. If it is negative and you reach the Y-region where you do not want the object to be, move it below. If the Y-velocity is positive and reaches the region, move it above.