Hi folks,
in my Silverlight 3 application, I display a tree. A self made user control is used for the treenodes, the LineArrow object for the connections. After initial displaying the tree, I want the nodes to move by the following "physical properties"
- there is a gravitational force, that pulls the node down
- there is a force vector to its parent
- it's children draws it to their middle
Naturally, my User Controls will overlap soon. But I do not want them to overlap. In physics terms, I want them to be solid objects and enforce the physical rule that no 2 objects can inhabit the same space.
Any suggestions how to tackle this problem? I do not want to use a physics engine like farseer for this, because the described part is the only physics to be used within my project.
Thanks in advance,
Frank