I am trying to get gravity working with a custom character controller based script, one that allows my player to dive underwater and resurface when the space bar is released. However… at the moment, the ability to resurface is playing havoc with the gravity itself. The two seem to be conflicting somehow, but I’m not entirely sure why. I’m using the character controller instead of physics as it has so far provided the best results, up until now.
When the character is at water level, which is the normal position, it’s jittering hard on the y axis.
The main goal is to get the character to go back to the water plane when they dive down from land.