Magnets!

Post Reply
kimgar
Posts: 22
Joined: Mon Jul 29, 2013 12:49 pm

Magnets!

Post by kimgar » Tue May 19, 2015 10:22 am

Hi, I'm looking for some pointers on where to start regarding a magnet simulation.

I've got four rectangular boxes where the short sides need to attract eachother and snap together.
I've tried PFlow and massFX but couldn't quite get it right, so i thought i would give realflow a try.

It seems fairly simple, but i am not sure where to start. Can this be done with daemons only, or do i need to do some scripting?

kimgar
Posts: 22
Joined: Mon Jul 29, 2013 12:49 pm

Re: Magnets!

Post by kimgar » Tue May 19, 2015 11:49 am

The magic daemon seems to kind of work, but i'm having problems lining things up, my boxes just stick to the surface being nearest.

So i though i could stick some null objects on my boxes and use those to control the magic daemon, but this leads to an instant crash, any ideas?

User avatar
tsn
Posts: 283
Joined: Fri Jun 11, 2010 7:22 am

Re: Magnets!

Post by tsn » Thu May 21, 2015 10:19 am

Hey, this sounds like a pretty cool project. Did you consider using attractor daemons linked to specific objects? You could place the daemons at different positions, make them exclusive to certain objects in the relationship editor and even adjust the strength values individually to get a more random behaviour.

That's just a quick idea, but maybe an option if the number of objects is not too high? Otherwise, a batch script could help you with a more complex setup.
Thomas Schlick | Next Limit Technologies

Post Reply