Gabriel_Wolf Posted September 1, 2019 Share Posted September 1, 2019 (edited) 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 September 1, 2019 by Gabriel_Wolf Quote Link to comment Share on other sites More sharing options...
catchyid Posted September 1, 2019 Share Posted September 1, 2019 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 1 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.