I was wondering if there’s a way to tell how much stress or strain a Havok constraint is being subjected to. A google search tells me that other implementations of Havok have a function called GetConstraintForce or similar that returns how “hard” the simulation is working to keep the constraint within its given limits.
I need it for implementing breakability/destructibility of meshes that are joined together with a LockConstraint – i.e. if a large enough force hits the constrained meshes, or if gravity is pulling too hard on them, they should break apart.
In the thread linked above, someone suggested testing the angle between the parent and child meshes to see if they’ve fallen out of their constrained angle, which is a good idea, but I’m wondering if there’s a more direct and less compute-intensive way to know.
Correct; there’s nothing in the interface right now, but we could certainly expose an interface to get the applied impulse for a constraint. I’ll add that to the next release.
It makes me wonder if there is more information in the bodyBuffer, too.
@eoin, is this also an opportunity to expose the full information for both bodies in one call (as was discussed in another thread about accessing the normal for both bodies in a collision event)?