FORUMS: list search recent posts

particle collision problem

COW Forums : Autodesk Maya

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Scott King
particle collision problem
on Oct 15, 2009 at 12:52:45 am

Can anyone tell me how to gradually slow particles down to a stop with each collision? I'm using the following expression to give random rotation, mass and scale to my instanced particles. But when the particles collide with the ground after a couple of times they come to an abrupt stop. My resilience and friction for the collision plane and particles is set to .400 and .010 respectively.

creation:

lg_particlesShape.index = rand(0,4);

float $s = rand(.2,.75);

lg_particlesShape.instScale = $s;
lg_particlesShape.mass = $s*6;

lg_particlesShape.instRotation = <<0,0,0>>;
lg_particlesShape.instRand = rand(-1,1);

runtime before dynamics

if(lg_particlesShape.event < 5){
lg_particlesShape.instRotation += (<<15,30,10>>) * lg_particlesShape.instRand;
}else{
lg_particlesShape.velocity = <<0,0,0>>;
lg_particlesShape.instRotation += <<0,0,0>>;
lg_particlesShape.gravityField1_magnitude = 0;
lg_particlesShape.volumeAxisField2_magnitude = 0;
}

thanks for any help!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]