Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Rest Length" returns unexpected values
#4
You're measuring the blueprint's rest length. The default rope blueprint has 100 pooled particles. That's a blueprint rest length of roughly 2/5*100 = 40 meters, so the reported value is correct.

If you want to get the runtime rest length, use rope.restLength as I did in the snippet above. That will give you the rest length of the currently active particles (that might change if you use a cursor to resize the rope, as this activates/deactivates particles from the pool).


Quote:I cannot seem to upload an image more than 100kb on this forum.
Attachment size is capped to keep hosting costs reasonable. You can upload them to imgur or some other website and paste the link here.

Quote:Alternate theory: this rope has gained sentience and is trying to explain the meaning of life to us.

Kudos for the reference Sonrisa. But sadly we'll have to wait for Deep Thought to be built, these ropes aren't quite there yet.
Reply


Messages In This Thread
RE: "Rest Length" returns unexpected values - by josemendez - 20-05-2021, 05:50 PM