Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Calculating the pull on a pin constraint?
#2
(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.
Reply


Messages In This Thread
RE: Calculating the pull on a pin constraint? - by josemendez - 13-12-2018, 01:57 PM