Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Obi Rope How To Get Any Position From Rope
#1
Hi,
I have an object like cube and I want to cube follow the rope in real time. The rope is stretching, sagging etc. but cube should be follow given point in rope every time.
[Image: ndqt5li.png]

An example code to explain what I think:

Code:
float length = obiRope.CalculateLength();
Vector3 targetPosition = obiRope.GetPositionFromFloat(length / 2);
cube.transform.position = targetPosition;

I hope I could explain.
Reply


Messages In This Thread
Obi Rope How To Get Any Position From Rope - by NorkQ - 16-01-2022, 12:11 AM