johnatm / itween

Automatically exported from code.google.com/p/itween
1 stars 2 forks source link

Paths with > 20 points will not draw properly in the scene view. (Fix shown, too!) #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Paths with > 20 points will not draw properly in the scene view.

What is the expected output? What do you see instead?
missing paths shown in the editor. this may make sense for HUGE paths, but what 
If i need to see them properly?

What version of the product are you using? On what operating system?
2.0.27

Please provide any additional information below.
To fix:

        for (int i = 1; i <= 20; i++) {
            float pm = (float) i / 20f;
            Vector3 currPt = Interp(vector3s,pm);
            Gizmos.DrawLine(currPt, prevPt);
            prevPt = currPt;
        }
    }   

replace instances of '20' with 'path.Length'

Similar and unrelated request- I'd like a way to change paths dynamically 
easily at runtime- deviate from its current path and go to another instead.

Original issue reported on code.google.com by connectb...@gmail.com on 27 Sep 2010 at 1:41

GoogleCodeExporter commented 8 years ago
Thank you very much!  Fixed and added into 2.0.28.  You rock.

Original comment by pixelplacement on 29 Sep 2010 at 11:56