V2 break constraints or solver

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

V2 break constraints or solver

Post by b1fg2 » Tue Dec 17, 2019 12:50 pm

how to break Constraints or solver when certain force apply to the attached body? force detection?

Norbo
Site Admin
Posts: 4884
Joined: Tue Jul 04, 2006 4:45 am

Re: V2 break constraints or solver

Post by Norbo » Tue Dec 17, 2019 7:18 pm

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: 16
Joined: Mon Sep 24, 2018 3:36 pm

Re: V2 break constraints or solver

Post by b1fg2 » Wed Dec 18, 2019 2:18 am

Thank you very much ! :D

Post Reply