underwater in blender game engine?

how do I do it? yeah I know it’s kinda a short question but any links to tutorials would be nice:yes:

I would do it with a static ghost plane for the water, with water decorations such as water textures, waves, etc. and then have a script on the player that when a ray sensor detects your water plane above it, puts a force equal to gravity upwards to stop you sinking. Then you can use this ray sensor to do other things like: change your animations to swimming ones, spawn a semi-transparent blue plane infront of the camera or in your HUD scene to make it look like your underwater, and draining oxygen meters. hope this helps.

thanks Oratar that is a very detailed explanation I’ll try it out and see how it works :slight_smile: