Search - User list
Full Version: Change particle size when collision is detected.
Root » Houdini Learning Materials » Change particle size when collision is detected.
trojan_goat
Hey Everyone,

I would like to reduce the size of @pscale when the particles collide with a specific object. I do have this somewhat working by using the age to reduce the scale of each particle. The problem happens when particles enter at a later frame. The age is higher and causes the particles to disappear instead of slowly shrinking.

Maybe there's a better way to do this?
trojan_goat
Problem solved.

For anyone else trying to do the same thing in the future…

I just created a new attribute to store the time from when the particle first collides and subtracted the age.

vex code looks like this

@hittimecount = @hittime - @age;

@pscale += (@hittimecount * .01);
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB