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!
RBD Initial State /w Packed Primitives
28399 23 2- goldleaf
- Staff
- 4200 posts
- Joined: Sept. 2007
- Offline
- circusmonkey
- Member
- 2624 posts
- Joined: Aug. 2006
- Offline
- goldleaf
- Staff
- 4200 posts
- Joined: Sept. 2007
- Offline
- stronglikebool
- 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:
So we can add random velocity only when the object switches to active.
if(distance(@P,{0,0,0})<@Frame/5) if(i@active != 1) { i@active=1; v@v = fit01(rand(v@P), -10, 10); }
Edited by stronglikebool - Nov. 27, 2017 22:41:33
-
- Quick Links