Jump to content

RBD Packed Object Dynamic Constraints


TomRaynor

Recommended Posts

I'm hoping someone can put me out of my misery...

 

The aim of the game is to create a bunch of glue constraints half way through a simulation of a bunch of RBD packed objects depending on certain test criteria.

As you will see in the attached scene, some RBD spheres are being attracted towards goal positions and I am trying to create some constraints between neighbouring RBD spheres within a given radius IF they are within a given distance of their goal.

 

I have got pretty close. In a SOP Solver I have managed to create the constraints using an attribwrangle but whilst the polygon lines connecting the RBD objects look correct, when viewed from withinside the SOP Solver, when I jump out to DOP level and view the guide geometry on the constraints, the red connecting lines don't seem to be going from the center of each sphere to the center of the sphere I want to constrain to. Instead the connection points seem off in space.

 

I'm sure there is a perfectly logical explanation why, but could someone please enlighten me?

 

Thanks!

rigidBodyCreateDynamicConstraints_v01.hip

Link to comment
Share on other sites

For glue contraints initial position is not important, so it should work the same in all casees. To make it appear correct when imported in dops, you have to provide world positions relative to each piece initial state. So basically you have to multiply positions by inverted packed transform matrices.

  • Like 1
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...