NVIDIAGameWorks / FleX

Other
664 stars 100 forks source link

About the buoyancy Scene #19

Open ngartner opened 7 years ago

ngartner commented 7 years ago

Hi Miles, In the buoyancy scene, you have added three balls with different particle inverse mass. There is a scale of four with the two one floating and a scale of fifty for the one that sink. If I increase the mass of the ball that has particle with inverse mass of 0.25, and divide the inverse mass by 2, the ball is still floating. To make a ball sink it's necessary to increase the mass a lot. Is there a way to change that ratio of 50 ? Make the ball sink faster for example with the same inverse mass ratio ?

Thank you !

mmacklin commented 7 years ago

Hi there,

The relationship between density and buoyancy in Flex is only approximate due to the use of shape-matching for the rigid bodies, and the limitations of the coarse fluid sim. Note that the behavior is also influenced by the time-step and iteration count, which unfortunately this means you would need to tune the density ratios and parameters to get the behavior you want.

Miles