Rolling back solved constraints

Post Reply
PaulTerry
Posts: 2
Joined: Thu Apr 26, 2012 8:48 pm

Rolling back solved constraints

Post by PaulTerry »

Is it possible, without modifications, to roll back a particular step of solved constraints? I.e. in the internalSingleStepSimulation method, discard the results after the solveConstraints() call and then solve it again? I am interested in this to perform more realistic breaks after collisions, specially against objects which are glued to very heavy structures.
CookieMonster
Posts: 49
Joined: Sun Jan 29, 2012 10:01 pm

Re: Rolling back solved constraints

Post by CookieMonster »

I would use a compound shape for each heavy body so that the small details will always be in the right place.
You can also use class inheritance if you want to modify the engine while still being able to upgrade to a new version of Bullet.
PaulTerry
Posts: 2
Joined: Thu Apr 26, 2012 8:48 pm

Re: Rolling back solved constraints

Post by PaulTerry »

Small details? Actually, I want to recalculate the constraints after I changed the composition of objects. I was looking for an alternative without the need to modify. If I have to modify it though I will add a commit/rollback feature there, which is what I am looking for.
Post Reply