V2 break constraints or solver

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
b1fg2
Posts: 19
Joined: Mon Sep 24, 2018 3:36 pm

V2 break constraints or solver

Post by b1fg2 »

how to break Constraints or solver when certain force apply to the attached body? force detection?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: V2 break constraints or solver

Post 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.
b1fg2
Posts: 19
Joined: Mon Sep 24, 2018 3:36 pm

Re: V2 break constraints or solver

Post by b1fg2 »

Thank you very much ! :D
Post Reply