Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rope limit
#1
Bombilla 
When increasing the length of my rope after 13.92 it does not continue to grow even though the limit (max) is set at 15 or more, I have 4 ropes on scene
Code:
if (Input.GetKey(KeyCode.K))
            {
                if (ropeExtrude.restLength < max)
                {
                    for (int i = 0; i < cursor.Length; ++i)
                    {
                        cursor[i].ChangeLength(ropeExtrude.restLength + speed * Time.deltaTime);
                    }
                    Debug.Log(ropeExtrude.restLength);
                }
            }
Reply


Messages In This Thread
Rope limit - by JskT01 - 19-11-2020, 03:38 PM
RE: Rope limit - by josemendez - 19-11-2020, 03:48 PM
RE: Rope limit - by JskT01 - 19-11-2020, 03:55 PM