Lets say I have a body of water with the level of the water at each frame, with waves that basicly go up and down. How would you implement the computation of the velocity to keep the object/npc/player afloat. I've tried check the velocity of the "waves" by checking the previous and current level of the water but it doesn't give me anything smooth, even if I damp everything. This is in 3D.

  • \$\begingroup\$ Why do you need any velocity? Can't you simply slave the object-position to the water-level? If you really need some physics solution, is there any issue with creating a counterforce that is applied throughout the water that effectively cancels your gravity? (or layer that force) \$\endgroup\$ – dot_Sp0T Jul 17 '18 at 10:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.