Jump to content
Mark01

kill by velocity

Recommended Posts

Hey guys!

 

I need to kill particles that have little/no movement. The trouble with killing by velocity is the particles that are moving, are varying in the axis they're moving in so I can't just kill @P.y ?

 

Any suggestions? Is it maybe possible to get each a particles speed of some sort?

Share this post


Link to post
Share on other sites

You can kill them based on the speed of the particles which based of the length of the velocity vector. 

 

if(length(v@v) < chf("threshold")) removepoint(0, i@id);

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×