PDA

View Full Version : Stop bouncing particle


mmurakami
09-28-2006, 11:41 PM
Hi,

I am trying to create a simple particle with no initial speed, apply it gravity and collide with a poly plane. Because I want to have two-three times bouncing animation to the particle, I type 0.5 to resilience in geoConnector of the plane. Then I get a nice bouncing, but particles never stop bouncing and look shaking (keep tiny bouncing).

How can I make them completely stop without animating amount of resilience to zero?

Aikiman
09-29-2006, 04:48 AM
You could create an expression that uses the event command that says on the third bounce (event 3) the goal weight = 1. I'm not sure how to go about it but that is a start.

I guess you'd create a custom array querying the event count. Sorry I cant be more helpful.

oodle
09-29-2006, 05:41 AM
one way i could think of is to lower the conserve value a little bit maybe like .98 or lower

Aikiman
09-29-2006, 07:43 PM
Here you can try this hack...create an expression for your resilience as follows

geoConnector1.resilience=1-smoothstep(20,400,frame);

I noticed the tiny little bounces on mine as well and it had to do with the resilience, so if you bring it down to zero over time, this case frame, it will stop the boucing. Play with the min - max frames for the correct timing.

baran
10-03-2006, 08:41 AM
May be like this.

$float mag = ParticleShape1.velocity;
if (particleshape1.velocity < 0.001)
{
set the particles velocity = 0;
}




particleShape2.sp=mag(particleShape2.velocity);
$rr=particleShape2.rr;
if(particleShape2.sp<0.01)
{
particleShape2.rr=0;
}

Hope this helps.

-Gurubaran.

mmurakami
10-04-2006, 09:51 PM
Thank you, people!
I will try them and let you know.

Aikiman
10-04-2006, 10:03 PM
just realsied only prob with my hack is its not per particle

rkderj
10-05-2006, 03:38 PM
you could link dynamics weight with the particle's lifespan in an expression.

CGTalk Moderation
10-05-2006, 03:38 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.