29-02-2024, 09:00 AM
(28-02-2024, 12:26 PM)josemendez Wrote: So you want the softbodies to rotate together with the cylinder, and not slide over its surface right? sounds like you just want to attach the softbodies to the cylinder...
You use a ObiParticleAttachment for that. It works just like it does for ropes, only difference is you need to create particle groups in the softbody blueprint editor to determine which particles in the softbody you want to be attached. See: http://obi.virtualmethodstudio.com/manua...ments.html
Not sure why you would want to do this in this case, however you can access all per-particle data (including velocities) using the particles API.
kind regards,
Thanks, this worked too, but it doesn't give me the result I wanted. Since it is locked to a point, its position does not change at all. However, objects coming from above should be able to push this object left and right. In the first image I posted, the balls come down from above and settle properly, except for the pink balls slipping away. In the second image, there is a scene view of the first image. The third image shows the image that occurs when I rotate the cylinder a little. Idont want this. Attachment also works, but it doesn't give me what I want. I asked about velocity resetting, thinking that if I reset all the forces on the sphere before applying force, I could avoid this. But it wasn't very healthy either. Is what I want possible with obi softbody? The solutions that come to my mind usually explode for other reasons. The simplest way is to create a separate solver for all of them and make the movement completely by gravity, as it rotates, it is automatically pulled in. But this is not healthy either, and as far as I have read, particles that are not under the same solverdo not detect each other, and I need to detect each other.