How To Add Water-Like Physics To Game?

I’ve been trying to code water-like physics for a game. Basicallly, my idea is to change the physics so that the player is slowed down. Also, does anyone have any good tips on how to reduce lagging?

Here’s the link to the editor: https://playcanvas.com/editor/scene/803931.

IMAGE 1.

IMAGE 2.

IMAGE 3.

Hi @DevPrimeOG,

This is nice! Regarding lagging if you mean the delay in moving the Player, you should play with Friction on the players rigidbody and the colliding/ground rigidbodies.

For the player, indeed the first thing I’d do is slow him down. After that you could add an upthrust force pushing the player to stay afloat or descend slower, when he is in the water.

Thanks! I’m working on it with my friend at school. I’ll be sure to edit the project more at home.

3 Likes