Hi Sean,
Thanks a lot for the info - yeah I realize it isn't a trivial problem to solve, but will give it a go and see where we reach. Lower level detail in the physics rope and interpolating for higher detail is a great idea.
While going through the Swinging Rope demo, it showed how much more efficient the constraint chain approach was, which is why I tried it out. Would the reason for not using constraint chain only be that the constraints are not breakable? Could we still have collision detection between two strings using constraint chain?
I'll work on a chain of constraints today and see how it comes out. Thank you for your inputs - will let you know about progress.
Regards,
Varun.
Hi Varun,
The Swinging Rope demo is a good demo. The constraint chain is much more stable for the kind of thing you are doing, but you can't really remove from it once its been constructed. Its kind of the nature of how the constraints inside the chain are solved. It uses it own kind of solver and then is passed to the physics simulation as a single constraint.
You should still be able to get collision data out of it because it is still made up of rigid bodies. One thing you could try is when you determine that a break should occur, just construct new chains. I'm sure there are some extra tricks you can try to gain performance, like pre-allocating double the number of rigid bodies so you don't have to construct new rigid bodies. You just need to construct the new constraint chain when it breaks and replace the active chian with the new chain. You can try some things like that if need be.
Let me know how it goes.
Thanks,
Sean