Mark01 Posted January 12, 2021 Share Posted January 12, 2021 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? Quote Link to comment Share on other sites More sharing options...
Sepu Posted January 12, 2021 Share Posted January 12, 2021 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); Quote Link to comment Share on other sites More sharing options...
Mark01 Posted January 13, 2021 Author Share Posted January 13, 2021 That works perfectly! Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.