Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Obi Rope How To Get Any Position From Rope
#4
(17-01-2022, 01:07 AM)NorkQ Wrote: Hi,
thank you for your answer. This is actually what I want. But obi gives me an error when I use this line.

[Image: nzw49lw.PNG]

Code:
Code:
private IEnumerator FlowEffect()
    {
        ObiPathSmoother pathSmoother = obiRope.GetComponent<ObiPathSmoother>();
        float mu = 0;
        while(mu < obiRope.CalculateLength())
        {
            mu += 0.01f;
            ObiPathFrame pos = pathSmoother.GetSectionAt(mu); // This line gives error. Even when mu = 0
            rastgeleBirKup.localPosition = pos.position;
            yield return new WaitForSeconds(0.005f);
        }
        StartCoroutine(FlowEffect());
    }

Hi there,

I'm unable to reproduce this. The input mu is clamped between 0 and 1, so any mu value should work fine.
-Which Obi version are you using? (asking before there was a bug in this method, fixed in 6.3)
- Are you doing any extra rope processing? (particle reordering, constraint reordering, element-based processing?)

kind regards,
Reply


Messages In This Thread
RE: Obi Rope How To Get Any Position From Rope - by josemendez - 17-01-2022, 08:15 AM