13-12-2018, 01:57 PM
(13-12-2018, 12:34 PM)KjetilMV Wrote: Hi
I need to calculate how much the pinned rigidbody is pulling on the rope. Is there a simple way to calculate the pull on a pin constraint?
Thanks in advance.
Yep. Use the constraint force getter method:
Code:
Oni.GetBatchConstraintForces(batch,constraintForces,constraintCount,startConstraint);
Returned forces are expressed in Newtons. See ObiPinConstraintBatch.cs BreakConstraints() method as an example on how to use it to determine when to break pin constraints when they're applying too much force.