Jump to content

dops grp problem


vfxkid

Recommended Posts

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

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 by vfxkid
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...