Obi Official Forum
Can I "unparent" the particles from the solver? - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html)
+--- Thread: Can I "unparent" the particles from the solver? (/thread-2273.html)



Can I "unparent" the particles from the solver? - alex112 - 27-05-2020

Hi,
I would like to generate the particles, and when they fall onto an object, that object move away, and the particles stay on that object.

Is that possible? Or the particles have to stay as children of the solver?

Thank you


RE: Can I "unparent" the particles from the solver? - josemendez - 28-05-2020

(27-05-2020, 08:29 PM)alex112 Wrote: Hi,
I would like to generate the particles, and when they fall onto an object, that object move away, and the particles stay on that object.

Is that possible? Or the particles have to stay as children of the solver?

Thank you

This is possible, even though the particles must be children of the solver. It's done exactly in the same way you would with regular rigidbodies in any physics engine.

Simply increase your collision material friction high enough, and make sure the object that's moving (the "platform") has velocity. By this I mean that simply translating it by changing its transform directly won't work at all, all this does is "teleport" the object, but does not give the physics engine any information about the displacement direction or magnitude. You must either have the platform be a rigidbody and move it using forces, or add the ObiKinematicVelocities to the platform to calculate approximate velocities.