Skip navigation

Having an shape reduce a particle's energy?

250 Views 1 Reply Latest reply: Oct 16, 2012 10:57 PM by fox_m RSS
Robert Kleindienst1 Calculating status...
Currently Being Moderated
Oct 11, 2012 3:09 PM

Have a project I'm working on - particles spraying out from a emitter all over the screen.

 

I want to place another simple shape on the screen and any particles that hit this shape instantly lose all their energy and remain "stuck" to the shape.

 

Is there a behavior that can do this?

  • fox_m Level 4 Level 4 (3,335 points)

    Not like you think.

     

    You need to start with all the particles ON the shape, then be expelled into the surrounding space. You'll be turning that animation backward.

     

    Start with an Emitter; Shape: Image (if something "custom" or different than the available options); Arrangement Random Fill (available for most options); Birth Rate 0; Initial Number -- whatever you need; Speed 0.

     

    Add: Behavior > Simulations > Repel From

    Add: Behovior > Simulations > Random Motion

     

    Add another object that can be used to force the particles in the direction you want them to "come from" .

     

    control the length of the animation by the setting the length of the behavior.

     

    Clone the Emitter once you have the "reverse animation" to your liking.

    With the Clone selected, go to Inspector > Properties > Timing and check the Reverse parameter.  [Duplicate the emitter with no behaviors for a "hold" condition at the end.]

     

    With the clone in reverse, your particles will appear to "stick" to a destination.

     

    A little hard to explain well, but HTH.

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.