14-07-2022, 06:08 AM
(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 Gran sonrisa](https://obi.virtualmethodstudio.com/forum/images/smilies/biggrin.png)