17-01-2022, 01:07 AM
Hi,
thank you for your answer. This is actually what I want. But obi gives me an error when I use this line.
Code:
thank you for your answer. This is actually what I want. But obi gives me an error when I use this line.
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());
}