(08-02-2022, 11:46 AM)josemendez Wrote: Is the rope attached to something? Seems to be just floating in zero gravity... changing rope length will add inertia: new particles = more mass, which gets added to the rope suddenly (since ropes are discretized, not continuous) and this mass is not placed where it would minimize energy. The result is altered momentum.
Generally speaking, you can't assume momentum conservation while resizing ropes at runtime. This is not an issue if the rope is under any external forces since these are generally much larger than any spurious energy added by the cursor, but in zero gravity and zero damping this will almost always cause the rope to start moving.
No it isn't attached to something and indeed it is floating with zero gravity. It's more clear why it's moving, thanks for the physical explaination.
I add a floor and gravity to reproduce the experiment with "external forces", it seems a bit more stable but when it reach the max length it start moving as before. Does this mean that the "external forces" are not "larger" enough ?
Or should I restrain the expansion rate factor (the one before Time.deltaTime) ?