Obi Official Forum
Help Rope blinks when increse lenght - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Help Rope blinks when increse lenght (/thread-2473.html)



Rope blinks when increse lenght - JskT01 - 05-09-2020

the rope flickers when I am making it long 
if I make it smaller this effect does not pass
This is my code:

Code:
internal void IncreseLenght(float normX)
        {
            if (normX ==1)
            {
                if (rope.restLength > .05f)
                {
                    for (int i = 0; i < cursor.Length; ++i)
                    {
                        cursor[i].ChangeLength(rope.restLength - speed * Time.deltaTime);
                    }
                  
                }
            }
            if (normX == -1)
            {
                for (int i = 0; i < cursor.Length; ++i)
                {
                    cursor[i].ChangeLength(rope.restLength + speed * Time.deltaTime);
                }

            }

        }



RE: Rope blinks when increse lenght - josemendez - 08-09-2020

(05-09-2020, 08:29 PM)JskT01 Wrote: the rope flickers when I am making it long 
if I make it smaller this effect does not pass
This is my code:

Code:
internal void IncreseLenght(float normX)
        {
            if (normX ==1)
            {
                if (rope.restLength > .05f)
                {
                    for (int i = 0; i < cursor.Length; ++i)
                    {
                        cursor[i].ChangeLength(rope.restLength - speed * Time.deltaTime);
                    }
                  
                }
            }
            if (normX == -1)
            {
                for (int i = 0; i < cursor.Length; ++i)
                {
                    cursor[i].ChangeLength(rope.restLength + speed * Time.deltaTime);
                }

            }

        }

Hi there,

What do you mean by "the rope flickers"? Does it jitter around? appear/disappear? can you show the effect?


RE: Rope blinks when increse lenght - JskT01 - 21-11-2020

(08-09-2020, 08:54 AM)josemendez Wrote: Hi there,

What do you mean by "the rope flickers"? Does it jitter around? appear/disappear? can you show the effect?
I just had to increase the mass of the object at the end of the string, thanks