A physics engine might be tough to use in this case, since most of the ones I've seen tend to deal with rigid bodies. Getting a shape to "squeeze" into a smaller space isn't something they're usually capable of doing.
As somebody who is particularly guilty of the "Spend five hours trying to find a clever solution to something I could have brute-forced in one" syndrome, I feel obligated to ask if you considered brute-forcing the problem. (Basically, figuring out the positions and sizes of each of the elements when any one of them is rolled over and keeping that in a giant array.) It's not a reusable solution, it doesn't scale well, and it won't win you the awe and respect of your colleagues, but it might work for a one-off project... --T On Thu, Feb 12, 2009 at 9:08 AM, Mattheis, Erik (MIN - WSW) < ematth...@webershandwick.com> wrote: > Thinking of the position of imaginary vertical and horizontal lines > between the elements may be a better approach. > > -- > Erik Mattheis > Senior Interactive Developer > Weber Shandwick Digital Minneapolis > > ph: 952 346 6610 cell: 612 377 2272 > > > -----Original Message----- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Sander > Schuurman > Sent: Thursday, February 12, 2009 10:25 AM > To: Flash Coders List > Subject: RE: [Flashcoders] Advanced Rollover Physics/Math... > > Do you know kinda where to start... I'm trying to figure out how I would > program the awareness of the elements. > > There must be some kind of idle position, and every element needs to > know where the mouse cursor is and to know in wich direction to move, > and know how big it needs to be according to the mouseposition, and how > much space there is inside his 'zone', etc. etc. > > pfoe > > -----Original Message----- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steve > Mathews > Sent: Thursday, 12 February 2009 16:50 > To: Flash Coders List > Subject: Re: [Flashcoders] Advanced Rollover Physics/Math... > > You could probably pull this off with a physics engine. You could > probably > do it without also as a entire engine could be overkill. > > On Thu, Feb 12, 2009 at 6:03 AM, Sander Schuurman < > sander.schuur...@oswaldandruby.com> wrote: > > > Hi cool list... > > > > I'm trying to create a subtle/smooth rollover animation of elements > that > > react (scale) to the mouse position, and are aware of each other, so > they > > move out of the way for each other instead of overlapping. > > > > I came across this subject a couple of times on the internet, but I > can't > > find it with google anymore. > > > > The following image explains the simple subject: > > http://img209.imageshack.us/img209/7434/testuu7.gif > > > > The following image explains more what I want design-wise: > > http://img165.imageshack.us/img165/5407/test2ec9.gif > > > > Somebody who can point me in the right direction? > > > > Can I do this with a physics-engine? Without gravity, but with the > > awareness of the other elements? > > > > How would you do it? > > > > Thanks! > > _______________________________________________ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders