Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  (Solved)When a rigidbody with a rope attached is deleted, the rope attaches elsewhere
#3
(12-07-2022, 07:35 AM)josemendez Wrote:
Code:
if (enabled && m_Actor.isLoaded && isBound)
{
//....
// all existing code for static/dynamic attachments here
//....
}
else if (!isBound && attachedColliderHandleIndex >= 0) //<--new code
{
     attachedColliderHandleIndex = -1;
     m_Actor.SetConstraintsDirty(Oni.ConstraintType.Pin);
}

Works perfectly. Much less code than the stuff I put in. Thanks! Gran sonrisa
Reply


Messages In This Thread
RE: When a rigidbody with a rope attached is deleted, the rope attaches elsewhere - by Hatchling - 14-07-2022, 06:08 AM