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
28408 23 2- goldleaf
- スタッフ
- 4200 posts
- Joined: 9月 2007
- Offline
- circusmonkey
- Member
- 2624 posts
- Joined: 8月 2006
- Offline
- goldleaf
- スタッフ
- 4200 posts
- Joined: 9月 2007
- Offline
- stronglikebool
- Member
- 28 posts
- Joined: 9月 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 - 2017年11月27日 22:41:33
-
- Quick Links