Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Unpin Rope not working
#2
Hi!

Unless you've created your own constraints batch -I don't know if that's the case, since this code is only about removing constraints- there's no need to remove the entire batch from the solver: you can just remove individual constraints. There's also no need to remove the entire constraint type from the solver as you do in the last line.

However you do need to flag the constraints dirty so that any changes you make take effect. See "Adding/removing constraints" at the end of the following page:

http://obi.virtualmethodstudio.com/manua...aints.html

(05-06-2024, 08:27 AM)kripa1415 Wrote: ChangeLength function is also not working as expected.
Its pulling the rope only to some extent. After that rope got stiff and straightened. Attached screenshot.

This happens because the pin constraint hasn't been properly removed, so when you reduce the length of the rope it gets stretched into a straight line.

kind regards,
Reply


Messages In This Thread
Unpin Rope not working - by kripa1415 - 05-06-2024, 08:27 AM
RE: Unpin Rope not working - by josemendez - 05-06-2024, 10:48 AM
RE: Unpin Rope not working - by kripa1415 - 05-06-2024, 02:12 PM