Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Creating and Removing Pin Constraints from ObiPinConstraintsBatch
#6
I see, thank you! 

I have updated the code and it appears to be working better, in that the correct constraints are destroyed. However the lists are still not being kept in sync.


It appears the arrays in the Batch appear to grow over time even though I am calling RemoveConstraint(). Below, the last particle to have a Pin constraint added is 190, which is at the end of particleIndices, even though the active constraint count is 1, and the loop is examining the first indices. (m_IDToIndex points to 0 too.)

Is there another method that needs to be called in order to clean up the batch?


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
RE: Creating and Removing Pin Constraints from ObiPinConstraintsBatch - by sebjf - 25-08-2023, 01:18 PM