24-03-2018, 11:14 AM
(24-03-2018, 07:26 AM)evera.hart Wrote: Obi Cloth looks fantastic! Can the cloth float on water (not Obi Fluid, just default Unity water) while a rigidbody sits on top of the cloth? (So the cloth is affected by both the rigidbody and water's waves.)
Would this be too rendering intensive or is there a way to pre-bake the water and cloth together?
Thanks!
Hi!
Yes it can be done. You'd need to use Oni.AddParticleExternalForces to add a upwards force to each cloth particle, proportional to how deep it has sunk. It will be able to support a rigidbody on top of it.
Rendering is not a problem at all with Obi, simulation is. Depending on how dense your cloth mesh is, it can be too intensive (>10000 triangles)
cheers,