Jump to content

How to delete dynamic points by group


Gabriel_Wolf

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
Link to comment
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
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...