vfxkid Posted September 4, 2009 Share Posted September 4, 2009 hello Again small grouping problem in dops. Cannot figure out a method on how to grp only the moving objs in a group so that it can be effected by gravity or any other forces. thanks grp_test.hipnc Quote Link to comment Share on other sites More sharing options...
bhaveshpandey Posted September 4, 2009 Share Posted September 4, 2009 (edited) you can query the Velocity and position data using the dopfield or dopoptions expression to determine the velocities of each rigid body and then can set up a threshold value to determine whether its moving or not and to include it to a non moving group for eg. abs(dopoption(".", $OBJNAME, "Position", "velx")) > 0.04 etc.. (note that I have just included velx..you could use compound expressions using &&, || etc. look for dopfield and dopoption expression in textport Also I guess the RBD Autofreeze node has some algorithm to calculate whether a body is moving or not or whether its slow enough to be considered as static..so you could dig into it perhaps. Edited September 4, 2009 by bhaveshpandey Quote Link to comment Share on other sites More sharing options...
vfxkid Posted September 4, 2009 Author Share Posted September 4, 2009 (edited) hey bhaveshpandey, thanks for the help but i did us that expression in my example. I used dopfield to query if the objs is moving or not so that it could switch group. I am trying to switch from a non moving group to a moving group. For some reason its not working. Edited September 4, 2009 by vfxkid 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.