10-01-2023, 12:48 PM
Code:
public void RemoveConstraint(int constraintIndex)
{
SwapConstraints(constraintIndex, constraintCount - 1);
m_IDs.RemoveAt(constraintCount - 1);
m_IDToIndex.RemoveAt(constraintCount - 1);
m_ConstraintCount--;
m_ActiveConstraintCount = Mathf.Min(m_ActiveConstraintCount, m_ConstraintCount);
}