Hello guys, does anyone know how to apply bouyancy for a water body custom actor? I am trying to create a swimming pool with floating toys, but can’t figure it out so far.
I don’t think the custom version has that option.
That said, it all works exactly the same as pretty much everything else.
Find the function used to generate the waves.
Copy that to blueprint / make a blueprint class in case its C++ (change header to make the function accessible via blueprint).
Make sure it returns Z for X and Y loc at Game Time.
From the object, call the function providing the floatie location (actor location x/y) and the correct time (likely game time).
Take the returned value and plug it into actor location Z.
Assuming the function is correct and that the time node use is the same, you will have the object moving up and down along with the visual representation of the wave.
1 Like