Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get api in java
#11
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.
Reply
#12
script.Update ok i will test ! yes i look for way to return radius in code after rescale
Reply
#13
(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()!
Reply
#14
Turns look not assign when i check the curve
Reply
#15
Unfortunately I don't understand your question. Could you elaborate a bit?
Reply
#16
http://www.youtube.com/watch?v=TTrFoIeVm...re=mh_lolz

yes sorry
Debug.Log (swirlsmove+"swrils"+swirls);
script.SwirlTurns =swirls;
script.Update();
i have try update and nothing happen
Reply
#17
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();
    }
Reply


Forum Jump: