Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RemoveConstraint error
#5
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);
        }
One mystery: Why is the count of m_IDs and m_IDToIndex is 0? solver batch
Reply


Messages In This Thread
RemoveConstraint error - by Seahorse - 10-01-2023, 09:49 AM
RE: RemoveConstraint error - by josemendez - 10-01-2023, 10:26 AM
RE: RemoveConstraint error - by Seahorse - 10-01-2023, 11:53 AM
RE: RemoveConstraint error - by josemendez - 10-01-2023, 12:00 PM
RE: RemoveConstraint error - by Seahorse - 10-01-2023, 12:48 PM
RE: RemoveConstraint error - by josemendez - 10-01-2023, 02:05 PM
RE: RemoveConstraint error - by Seahorse - 10-01-2023, 02:24 PM