Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pin constraint attached to hanging platform has strange behavior
#4
(14-07-2020, 12:10 AM)mr-matt Wrote: Setting phases and using the inverse transformed position from the collider solved the issue.

HOWEVER, it still freezes the rotation of both the platform and the helicopter. Why is this?

By default, pin constraints constrain both position and orientation. You must set the orientation compliance to a higher than zero value if you want free rotation. Each batch has an "stiffnesses" array that contains 2 * constraintCount entries: the first entry is the positional compliance, and the second one the rotational compliance. So:

Code:
batch.stiffnesses[constraintIndex * 2 + 1] = 10000; // really high compliance value frees up rotation.
Reply


Messages In This Thread
RE: Pin constraint attached to hanging platform has strange behavior - by josemendez - 14-07-2020, 08:07 AM