Jump to content
Sign in to follow this  
MaximTF

RBD intersections

Recommended Posts

Hi there.

I have another question.

For example i have some intersecting spheres. I need to push them away to delete intersections (but not far, spheres must keep their positions approx.), and then attract them back. I think the best way is to use RBD. And i know how attract them to point.

But i can not get how to push them a little bit?  

2018-07-06_20-50-50.png

Share this post


Link to post
Share on other sites

set the point attribute i@found_overlap=1 on your packed RBDs before the simulation and they will resolve overlaps at the beginning of the simulation. you can then apply other forces if necessary to push them back together.

  • Like 3

Share this post


Link to post
Share on other sites

toadstorm, Thank you. It works like a charm.

Share this post


Link to post
Share on other sites
Posted (edited)

And another question. 

How can i reduce the force that pushes my spheres away only by Z-direction? They must pushes only by XY and not Z.

Edited by MaximTF

Share this post


Link to post
Share on other sites

Ok, i found another simple way that gives me a acceptable result.

1. I have many intersecting clones on a spherical surface.

2. First of all i use toadstorms advice  to pushing clones away. i@found_overlap=1 works well.

3. Than i use constraint network with spring constraints to attract them back. It gives me nice and smooth surface with my clones.

Early i tried to use force that attracts all clones to the one point and it makes a hump in center of my geometry.

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×