Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  What is the proper way to add distance constraint?
#1
I've only able to find example for adding pin constraint, and before I do anything dumb myself, I'd like to get an example for adding distance constraint through script.

Is it as simple as adding two indices for the pair of particles in the new distance constraint to the batch array and mark the constraint type as dirty?

When I look into the Tear() method it looks like I also need to apply some properties to the new constraint, but there seem to be other things going on which I'm not sure if it's only for the reconstruction after the tearing operation...
Reply


Messages In This Thread
What is the proper way to add distance constraint? - by snowtv - 21-06-2022, 03:06 PM