#How can i add Buoyancy to a Gerstner Wave?

1 messages · Page 1 of 1 (latest)

calm pasture
#

so ive been trying to make an ocean and i finally found a way to make gerstner waves but now i wanna add buoyancy but i cant figure out how to add it for items or players boats etc

#

do i need to add a separate script to the object/part it self or do i need to a server side script?

west storm
#

Bouyancy is an upward force exerted on bodies within a fluid. For Gerstner waves, you can simplify bouyancy as a force that counteracts the body's weight when that body's position falls below the wave height at that position

#

You can find several resources for implementing bouyancy in Gerstner waves

calm pasture
#

I’ve been looking for sources but can’t find any or any tutorials which is what I need because I don’t understand well when reading

west storm
# calm pasture I’ve been looking for sources but can’t find any or any tutorials which is what ...

Been playing Sea of Thieves a lot recently and really wanted to make some water physics, so I implemented some Gerstner/Trochoidal waves in Godot with a vertex shader and then simulated buoyancy in GDscript.
Consider supporting the channel: https://www.patreon.com/xen42

Here's some of the resources I consulted while doing this.
wikipedia lol
...

▶ Play video
#

Bunch of keywords after a single Google query

calm pasture
#

Omg thank you so much!