Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Obi Rope How To Get Any Position From Rope
#3
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());
    }
Reply


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