Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Rest Length" returns unexpected values
#3
You can reproduce it in the project I sent you for the previous bug.

In a new empty scene:

  1. Drag the prefab "Assets/ObiPrefabs/Rope" into the scene and center it on 0,0,0.
  2. Create a cube and position it at 1,0,0. Change its scale to 1,2,1. This can be used to compare sizes. It is at least approximately 2.
  3. Add "Debug.Log(m_RestLength);" at the end of ObiRopeBlueprint.Initialize().
  4. Select the rope and click "Edit Path" on the Obi Rope inspector.
  5. Wiggle around the control points of either end of the rope.
  6. Observe that something around "42" is displayed in the console.

I've done the same thing and took a screenshot:

I cannot seem to upload an image more than 100kb on this forum.

Maybe this will work: 
https://i.imgur.com/cf0BlxY.jpg

But anyway, I've intentionally bowed out the rope a bit so that you can see the tangents are not causing the rope to fold over itself. It should be only a little more than 2 even with that slight bend.

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


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