Posts: 690
Threads: 71
Joined: Jan 2015
After script.SwirlsTurn=1 you'll need to call script.Update()!
If you set ScaleMode to ControlPoint, use the scale of the Control Point's Transforms.
Posts: 33
Threads: 10
Joined: Aug 2013
script.Update ok i will test ! yes i look for way to return radius in code after rescale
Posts: 690
Threads: 71
Joined: Jan 2015
(08-14-2013, 06:41 PM)kilik Wrote: script.Update ok i will test ! yes i look for way to return radius in code after rescale
Use CurvySpline.InterpolateScale()!
Posts: 33
Threads: 10
Joined: Aug 2013
Turns look not assign when i check the curve
Posts: 690
Threads: 71
Joined: Jan 2015
Unfortunately I don't understand your question. Could you elaborate a bit?
Posts: 33
Threads: 10
Joined: Aug 2013
http://www.youtube.com/watch?v=TTrFoIeVmK0&list=HL1378149982&feature=mh_lolz
yes sorry
Debug.Log (swirlsmove+"swrils"+swirls);
script.SwirlTurns =swirls;
script.Update();
i have try update and nothing happen
Posts: 690
Threads: 71
Joined: Jan 2015
I'm sorry, of course Update() is called Refresh(). I did a quick test:
Code:
var spline:CurvySpline;
function Start() {
spline = GetComponent("CurvySpline");
spline.Swirl=CurvyOrientationSwirl.Spline;
}
// Update is called once per frame
function Update () {
spline.SwirlTurns = Time.realtimeSinceStartup;
spline.Refresh();
}