Jump to content

Help with Breaking Constraints Based on RBD Y Position


Masoud

Recommended Posts

Hi everyone,

In a rigid-body simulation, I'd like to break constraints if the RBDs go above 1.5 in the Y position (i.e., @P.y > 1.5).

I've added a SOP Solver to the last input of the Constraint Network DOP, but I'm not sure how to access the Y position of the RBDs inside the solver.

Any ideas on how to reference the RBD positions correctly?

 

Thanks in advance for your help!

Constraint.gif

Constraint.jpg

Link to comment
Share on other sites

Posted (edited)

inside SOP Solver you can apply 1 in 2 options:

1. Merge the dop_geometry data into second input for Y position per step of the RBDs (select by name or DOP id to select the animated geo)

2. If the animated RBD geometry ahead at SOP. Use a merge node, merge the animated geo into the SOP Solver

Both give you animated Y position of the animated geometry. Input that to 2nd input of the VEX wrangle to apply operation on primitive. 

Edited by paranoidx
clarify answer
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...