I have an RBD simulation where I'm setting some of the points as active and others as inactive in the SOP context. When I use the SOP rbdbulletsolver node, this works great and it's respecting these attributes.
However, I'm realizing that I might want to try some more complicated things (like set the gravity or mass per each piece or limit the number of broken constraints based on how many constraints have already been broken). I figured that to do these things, I'd probably need to build my own DOP Network.
However, I'm finding that this new DOP network isn't respecting the active attribute, and it's also not respecting the rest length which is specific to each primitive in the constraints.
How can I make it so that my DOP network reads and respects these attributes from the SOP context?
AnsonSavage I figured that to do these things, I'd probably need to build my own DOP Network.
not necessarily, you can always dive inside of Bullet Solver SOP and do it all in there
AnsonSavage How can I make it so that my DOP network reads and respects these attributes from the SOP context?
to update active or any attribute on RBD Packed prim you need to include them in your /obj/grid1/custom_bullet_solver/rbdpackedobject1/Override Attributes From SOP parm
the constraint breaking logic is up to you to implement, you can either steal it from Bullet Solver SOP /obj/grid1/rbdbulletsolver1/dopnet/Constraint_Solver or implement your own
you are giving up a lot by abandoning Bullet Solver SOP so you may want to reconsider, unless you really hit the wall with something that it can't handle
Thanks for this! I'll test this out as soon as I get back in the office, thanks again.
tamte you are giving up a lot by abandoning Bullet Solver SOP so you may want to reconsider, unless you really hit the wall with something that it can't handle
Does the Bullet Solver SOP just handle a lot of things that I don't have to worry about? For something this simple, it seems like it shouldn't be too hard to make a custom DOP network, but maybe I'm wrong. To be honest, I'm pretty new to all of this.
But yes, if you are comfortable with setting your own constraint breaking logic, and don't need other features that it has, you can definitely rebuild simple setups from scratch in no time