RBD Initial State /w Packed Primitives

   28399   23   2
User Avatar
Staff
4200 posts
Joined: Sept. 2007
Offline
Hey guys, super helpful thread, thanks! I'm trying to extend this to inherit the initial velocity of each packed prim once they become active. But primitives that get activated over the course of a simulation don't inherit v when they start to sim.

Is there something I'm missing on the object to get each piece to inherit velocity when its activated? This file is netvudu's, modified slightly.

Thanks!

Attachments:
PackedAngularRandomTest_initialVelocity.hiplc.hipnc (232.1 KB)
screencast-2015-02-21-011156.gif (419.3 KB)

I'm o.d.d.
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
I did have to bring velocity into the dops network by over writing. Remember that pesky check box to disable on the rbd packed object "enable sleeping .

Rob

Attachments:
packedangularrandomtest_initialvelocity.hiplc_rse_fixed.hipnc (228.7 KB)

Gone fishing
User Avatar
Staff
4200 posts
Joined: Sept. 2007
Offline
Thanks for putting that example together Rob, I appreciate it!
I'm o.d.d.
User Avatar
Member
28 posts
Joined: Sept. 2008
Offline
I used a solution like this. In my sop solver connected to the rigid body solver. I use a point wrangle with:
if(distance(@P,{0,0,0})<@Frame/5)
    if(i@active != 1) {
        i@active=1;
        v@v = fit01(rand(v@P), -10, 10);
        }
So we can add random velocity only when the object switches to active.
Edited by stronglikebool - Nov. 27, 2017 22:41:33
www.earthfixed.com
  • Quick Links