Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Issue with Rope Consistency!
#13
(10-06-2020, 08:55 PM)Kifwat Wrote: I mean after calculating the rope length including the stretching, how can I add particles between the ones who has a big distance between them (because of the stretching), to make the rope's particles always have the same distance between them, despite of the rope's length. Hope you understand what I mean Sonrisa

I don’t think I get it... no matter how the total length of the rope is distributed across particle constraints (some might be very stretched, other not so much), the total rope length is the same. When increasing the length of the rope using a cursor, new constraints will always have the same rest length. This is taken care of automatically, I believe you’re overcomplicating things a lot: just call cursor.ChangeLength(new length) when the value returned by rope.CalculateLength() exceeds the rest length by some threshold. Pseudocode:

float length = rope.CalculateLength();
If (length > rope.restLength + threshold)
cursor.ChangeLength(length);
Reply


Messages In This Thread
Issue with Rope Consistency! - by Kifwat - 10-06-2020, 02:57 PM
RE: Issue with Rope Consistency! - by josemendez - 10-06-2020, 03:26 PM
RE: Issue with Rope Consistency! - by Kifwat - 10-06-2020, 04:30 PM
RE: Issue with Rope Consistency! - by josemendez - 10-06-2020, 04:45 PM
RE: Issue with Rope Consistency! - by Kifwat - 10-06-2020, 05:41 PM
RE: Issue with Rope Consistency! - by josemendez - 10-06-2020, 05:51 PM
RE: Issue with Rope Consistency! - by josemendez - 10-06-2020, 06:13 PM
RE: Issue with Rope Consistency! - by Kifwat - 10-06-2020, 06:46 PM
RE: Issue with Rope Consistency! - by josemendez - 10-06-2020, 08:01 PM
RE: Issue with Rope Consistency! - by Kifwat - 10-06-2020, 08:12 PM
RE: Issue with Rope Consistency! - by josemendez - 10-06-2020, 08:38 PM
RE: Issue with Rope Consistency! - by Kifwat - 10-06-2020, 08:55 PM
RE: Issue with Rope Consistency! - by josemendez - 10-06-2020, 09:09 PM
RE: Issue with Rope Consistency! - by Kifwat - 10-06-2020, 09:41 PM
RE: Issue with Rope Consistency! - by josemendez - 11-06-2020, 08:13 AM