Making a Group for points move too far away from Orignal @P

   689   2   0
User Avatar
Member
128 posts
Joined: 9月 2018
Offline
Is there a way to add points to a group that stray too far away from it's original point position?
User Avatar
Member
8525 posts
Joined: 7月 2007
Offline
What do you mean by original P?
Is this for particle sim?

You can do something like this assuming you stored the original P in v@Porig attribute
i@group_stray = distance(v@P, v@Porig) > chf("maxdist");
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
128 posts
Joined: 9月 2018
Offline
Well it is for a rigids sim but sure! I have a wall getting destroyed. I pretty much want to have the pieces that have fallen to the ground to be in it's own group and my thought was if it strayed from it's original point position based on a threshold that would be a good enough mask for that.

I originally tried doing inactive v.s. active and that wasn't favorable results. There might be a better way than what I was asking for from you but that seamed logical enough to try.

Vincent Griffith
  • Quick Links