Bug / Crash Problems with the ObiRopeCursor - 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: Bug / Crash Problems with the ObiRopeCursor (/thread-1107.html) |
Problems with the ObiRopeCursor - Jarlacksul - 19-04-2019 We have a problem with the ObiRopeCursor not working as intended. We want a long rope that can extend and decrease it's length from one end. Here is what we have tried doing.
ObiRope rope; ObiRopeCursor cursor; // Use this for initialization void Start () { rope = GetComponent<ObiRope>(); cursor = GetComponent<ObiRopeCursor>(); } // Update is called once per frame void Update () { if(Input.GetKey(KeyCode.W)) { cursor.ChangeLength(rope.RestLength + 1 * Time.deltaTime); } else if(Input.GetKey(KeyCode.S)) { cursor.ChangeLength(rope.RestLength - 1 * Time.deltaTime); } } } Now whenever the rope reaches near the end of its pooled particles the rope starts behaving poorly. The yellow indicator of the cursor that shows where the new particles come from starts moving backwards. Rope at the start [attachment=341] Rope working as intended - take a closer look at the Pooled particles. [attachment=342] Rope breaking when particle pool gets low enough. [attachment=340] Unity Version: 2018.2.14f1 Obi Rope Version: 4.0.2 Sorry about formatting, first time posting. |