Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Having an shape reduce a particle's energy?

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?

Posted on Oct 11, 2012 3:09 PM

Reply
Question marked as Best reply

Posted on Oct 16, 2012 10:57 PM

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.

1 reply
Question marked as Best reply

Oct 16, 2012 10:57 PM in response to Robert Kleindienst1

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.

Having an shape reduce a particle's energy?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.