Jump to content

RBD rotation constraint


Vicarious_one

Recommended Posts

I'm looking to create an effect where an object (for the sake of simplicity, lets say is just a box), can be affected by rbd objects, but only rotationally, and the center position of this box remains locked at a single point position. You can kinda imagine if the object is suspended in a gravity field where it's center of gravity doesn't move, but it's able to rotate freely and be influenced by other objects. The only sources I could find that deal with constraints like this either involve multiple object strung together, or some kind of spring constraint. I just want the object to rotate around it's center point when influenced by another rbd object, without changing it's center point position.

Any help would be greatly appreciated.

Thanks!

Link to comment
Share on other sites

This is perfect! Exactly what I was looking for. Thanks so much.

If I could make one final request about the most recent file shared(the one in the last post). Would you be able to explain what exactly is happening in the setup? At least the important parts like how the pivot is set up and how the constraints work. I would really like to know the breakdown of how this works so I could more easily recreate the effect in the future

Thanks!

 

Link to comment
Share on other sites

Hi Eric,

I think this page is a great introduction to the wild and wonderful world of constraint geometry:

https://www.sidefx.com/docs/houdini/nodes/dop/constraintnetwork.html

In the scene above the constraint primitive (a simple two point poly) is manually placed at the centroid of the packed box. One point of the primitive references the name of the packed piece, the second point references nothing. By referencing nothing that point becomes a world space anchor - the other named point is bound positionally to that anchor and becomes the de facto pivot of the packed object. That's all there is really. You can, of course, offset the constraint geometry which effectively offsets the pivot of the packed object. See scene below (the scene also contains an alternate way to handle rotation back to rest via dual constraints rather than manipulating angular velocity).

 

clipping2.gif.gif

rotate_back_to_rest_rbd_offsetpivot.hipnc

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