buoyancy effect, determine volume under water
Posted: Fri Oct 20, 2017 6:35 pm
Hi!
I want to achieve the buoyancy effect to objects in the water, however I am having problem resolving how much the object volume is under the water.
In the height field water column model (http://matthias-mueller-fischer.ch/talks/GDC2008.pdf), I could send raycast by every column to determine the contact points, but I think is too costly to real time performance (too many raycast by tick). Could be another way to determine it? (also the water has a ghost object to detect when something contact it (actually a btGhostPairCallback, but again, I can't determine the object volume inside the water with that info)).
Regards!!
I want to achieve the buoyancy effect to objects in the water, however I am having problem resolving how much the object volume is under the water.
In the height field water column model (http://matthias-mueller-fischer.ch/talks/GDC2008.pdf), I could send raycast by every column to determine the contact points, but I think is too costly to real time performance (too many raycast by tick). Could be another way to determine it? (also the water has a ghost object to detect when something contact it (actually a btGhostPairCallback, but again, I can't determine the object volume inside the water with that info)).
Regards!!