17-01-2022, 08:15 AM
(This post was last modified: 17-01-2022, 08:16 AM by josemendez.)
(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.
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,