Page 1 of 1

V2 break constraints or solver

Posted: Tue Dec 17, 2019 12:50 pm
by b1fg2
how to break Constraints or solver when certain force apply to the attached body? force detection?

Re: V2 break constraints or solver

Posted: Tue Dec 17, 2019 7:18 pm
by Norbo
You could use Simulation.Solver.GetAccumulatedImpulseMagnitudeSquared(constraintHandle) to get the impulse the constraint is applying, and if it is above a threshold, remove the constraint.

Re: V2 break constraints or solver

Posted: Wed Dec 18, 2019 2:18 am
by b1fg2
Thank you very much ! :D