Jump to content
Gabriel_Wolf

How to delete dynamic points by group

Recommended Posts

Hello,

I made a rigid body simulation where I have different kind of pieces, like pavement, road etc. I grouped them in a group called "group1"

How can I write this in vex in pointwrangle?

Take the group1 and if the points in group1 are under  -1 in @P.y then delete them.

 

Thank you for your help

Edited by Gabriel_Wolf

Share this post


Link to post
Share on other sites

hello,

there are many ways to do that, but I would say one easy way is to have a point vex wrangler, set parameter "Group" to group1 and in the code section, write something similar to 

if(@P.y<-1)

   removepoint(geoself(),@ptnum)

cheers

 

 

  • Like 1

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

×