Masoudyou are not sampling density from the correct points
Hello Tamte
Thank you for replying.
Please take a look at my file. I tried this codes in the density field:point("/obj/box1/SRC", $OBJ, "density", 0)
The spreadsheet indicates the density of each piece, which is useful, but the lower-density pieces always sink in the fluid!Image Not FoundImage Not Found
the geometry you are pointing to has 16 points so both of your objects will sample density of 1000 which you can see in the Geometry Spreadsheet
so you either create geo with just 2 points and set density accordingly or just check Create Packed Primitives on your assemble
which will pack your objects but still promote our density attribute, that way
Fractured RBD will still be able to use correct geo based on name and the point() expression will correctly sample point based on $OBJ variable as there are exactly the same amount of points
EDIT: just to explain further as it may seem confusing
feeding Packed geometry to RBD Fractured Object DOP doesn't mean you get Packed RBD, just that the geo fed thee was packed, and RBD Fractured Object will still use it to create individual DOP objects for old RBD solver, packing in SOPs just helps representing each object as a single point and therefore allows having attributes that can be then sampled using point() expression based on $OBJ variable