08-11-2013, 05:56 PM
(08-11-2013, 11:08 AM)kilik Wrote: Ok ! sorry noobs Inside ! !<< )
thanks ! ) is help lot
var script = Cur.GetComponent(CurvySpline);
pos =Vector3;
pos2 = 0.1f;
pos = script.GetTangentByDistance ( pos2 );
and she say
ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
System.Collections.Generic.List`1[CurvySplineSegment].get_Item (Int32 index) (at /Applications/buildAgent/work/b59ae78cff80e584/mcs/class/corlib/System.Collections.Generic/List.cs:633)
CurvySpline.DistanceToSegment (Single distance, System.Single& localDistance) (at Assets/plugins/Base/CurvySpline.cs:803)
CurvySpline.DistanceToTF (Single distance) (at Assets/plugins/Base/CurvySpline.cs:777)
CurvySpline.GetTangentByDistance (Single distance) (at Assets/plugins/Base/CurvySpline.cs:755)
CurvyNext.Awake () (at Assets/Scripts/CurvyNext.js:18)
same thinks with other like InterpolateByDistance
Do you have a screenshot of all Components of the affected GameObject? Or an example scene alternatively?