I’m currently creating a custom swimming system. I’m using the solution described in this post: How to create terrain water behavior, without terrain water - #13 by Aorda.
However, now I want to add a force that makes the player float to the surface of the water (like SmoothTerrain water). I’m currently trying to use a BodyPosition for this, with the position set to the water’s surface.
This is not really working though. The BodyPosition interferes with the BodyVelocity, and if it’s MaxForce is set to high, the player won’t be able to swim. If it’s MaxForce is set to low, the player won’t float to the surface.
Is there another way to make the player float to the surface just like with SmoothTerrain?
I have already searched for this on the forum.