4 Replies Latest reply on Apr 19, 2009 12:55 PM by Navarro Parker

    Edge collision problem

      HI, I'm in making an animation where individual words are falling down and getting stuck in to this funnel. After a while of wiggling words will burst out of the end of the funnel.

      I'm used to making animation by keyframes, but is there script, expression or plugin for edge collision in After Effect?

      ...so when I draw the funnel elements then I could use an expression or something to stop the text elements to the funnels edges.

      I'm using AE CS3 Pro

        • 1. Re: Edge collision problem
          Mylenium Most Valuable Participant
          Not really. Dan Ebberts has a technique on his motionscript.com site, but ultimately the pitfall is going to be in the evil combination of a few circumstances. for the most part the failure here is the text layers, which either require you to pre-compose or create another instance of sampleImage() intra-layer to derive their bounding box dimensions - AE doesn't do this natively. Furthermore you may run into problems if your funnel is not solid throughout, as in that case you will have to add even more code to decide on which side of the "line" presenting the wall your words actually are. another level of complexity is introduced by the wiggle - if it is created using an expression, you'd have to tie it in with your collision/ avoidance algorithm and either simulate physically correct bouncing (velocity vector, tangentiality checking) or find a way of keeping the "flow" by modulating the wiggle. All of this makes it not that terribly feasible to use expressions - at the point you have your code working in the way you want, you could have done it by hand. Looks good on paper, but not practical (unless someone has a pre-fab setup and would be willing to share it with you).

          • 2. Re: Edge collision problem
            (Steve_Patterson) Level 1
            Besides Mylenium's great advice, and checking out Dan Ebberts' site (which should be done, regardless), have you considered doing this in a 3D program? Creating your cone primitive, and setting up some rigid/soft body dynamics with gravity would chop the mountain back down to a molehill.
            • 3. Re: Edge collision problem
              Jochem van Dieten Level 4

              Curt Wrigley wrote on 2009-04-16 20:21 :

              Is it me, or are these Fora getting slower?


              My AIR client (which logs every call it makes to the forums servers)

              tells me the forums are 1.88 times as slow today as they were Friday

              last week.





              Jochem van Dieten




              This message has been scanned for viruses and

              dangerous content by MailScanner, and is

              believed to be clean.


              • 4. Re: Edge collision problem
                Navarro Parker Level 3

                This would be a classic example of AE needing a 2D physics engine. 


                I've been begging them to integrate something like Phun into AE.  The animation possibilities are endless!