wandersonp Posted September 19, 2015 Share Posted September 19, 2015 Recently I discover something interesting after smash my head against wall for a few days. Im creating a simulation using bullet and packed prims, and I need activate (using i@active variable ) the pieces in choreographed way over the frames But the thing make me crazy is that bullet change ptnum of each packed primitive over the time, and I think is about some priority list inside the algorithm of the solver. because after the simulation I need to atach some atributes for each simulated piece. Then I realize that I need to attach theses attributes before simulation or atach some sort of ptnum tracking for them. bullet activate order points_v001.hip Quote Link to comment Share on other sites More sharing options...
anim Posted September 19, 2015 Share Posted September 19, 2015 (edited) it looks like bullet splits active and inactive pieces for some internal computation and then merges them one after another, maybe it's for optimization purposes or maybe it doesn't matter and can be prevented, whatever is the case @ptnum is not guaranteed to produce consistent results anyway, what if you start adding/deleting rbds in the sim? you should be using @id or @name to match your pieces, not @ptnum EDIT: btw, bullet creates and tracks @id attribute internally, so you don't need to create your own Edited September 19, 2015 by anim 1 Quote Link to comment Share on other sites More sharing options...
cwhite Posted September 21, 2015 Share Posted September 21, 2015 I fixed this in H15 - it was just an unintended side effect of how deforming objects were updated. Note that your setup marks the objects as both animated and deforming, which probably isn't what you want. And, as anim noted, relying on ptnum is dangerous if objects are ever removed from the sim. 1 Quote Link to comment Share on other sites More sharing options...
wandersonp Posted September 21, 2015 Author Share Posted September 21, 2015 Thanks a lot Tomas and Cameron Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.