Jump to content

Apply Velocity to RBD Pieces by Position, issue..!


Masoud

Recommended Posts

 

Hi everyone,

 

I have an RBD Fractured Object wired into a Rigid Body Solver (Bullet), and I’d like to apply a custom velocity to each piece whose centroid’s Y position is below 0.5.

I tried this inside a Point Wrangle within a SOP Solver, but it didn’t work:

if (@P.y < 0.5)
{
    v@vel = {0, 10, 0};
}


I also attempted the same approach inside a Geometry Wrangle in DOPs, but that didn’t work either.

Does anyone have suggestions on how to achieve this?

 

Thanks in advance!

RBD.gif

RBD.hip

Link to comment
Share on other sites

It is easier to control if you used packed RBDs. Then you can overwrite the v@v attribute.

pig_vel.gif.136f011c0eb430b380158ffc5e6058b8.gif

image.thumb.png.6d8694758019e40e2d6f24d06970d8b0.png

Add an Assemble dop before the dopnetwork and check Create Packed Primitives.

image.png.d874fb0510020c65bcaced8d11c85466.png

Link to comment
Share on other sites

  • 3 weeks later...

Use the Bullet SOP Solver it’s a quicker, cleaner setup than a classic DOP workflow. Configure your pieces with RBD Configure to pack fragments and set RBD properties; even when simming in DOPs, pre-process with this node before the solver.
To inject velocity (@v) mid-sim, place a SOP Solver inside the DOP network. In the file, dive into the RBD SOP and add a SOP Solver at Post-Solve; inside it, an Update v wrangle updates per-point velocities on the RBD packed pieces.

add_v_postsolve_rbd_v1a.hiplc

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