I’m quite new to Max and I am struggling with physics to achieve my goal. It is quite specific task that I am doing but I’m sure that it can be done in Max anyway. Sorry in advance for my English hehe :)
I need to create several (let’s say six) jit.phys.bodies that will attract or repel one another with different force. I want them to move in space and stop once they are in balance. In other words I need this bodies to have a grade of attraction in case if there is a line between them (see drawing attached).
You can see in the drawing that body 5 attracts five bodies (3,2,1,2,3) very much and body 1 attracts only body 5 but the grade of attraction of body 1 is minimum. You can see the grade of attraction actually depends on the number of links that each body has. The force that moves each body has to be a sum of vectors. In the last drawing you can see the result of the movement that I am looking for.
I already tried with jit.phys.ghost and jit.phys.bodies @force … but no luck! I feel that it can be done with jit.phys.multiple but don’t quite understand how to do it. Sorry for being such a newbe…
Thanks for your help in advance,
Cheers from Spain :)