Exemplo n.º 1
0
    /// <summary>
    /// Init the equation using the selected equation and parameter bundle.
    /// </summary>
    public override void Init()
    {
        x   = new float[3];
        a_n = new float[3];
        b_n = new float[3];
        c_n = new float[3];
        d_n = new float[3];
        arg = new float[3];

        chaosEqn        = ChaosEqnFactory.Create(selectedEqn, selectedParams, customParams);
        initialPosition = transform.position;
        lastTrail       = transform.position;

        StartAt(chaosEqn.paramBundle.initialPosition);

        // check for a ChaosTrail child
        chaosTrail = GetComponentInChildren <ChaosTrail>();

        paused = false;
        TimeInit();
    }
Exemplo n.º 2
0
 public override void Init()
 {
     chaosEqn        = ChaosEqnFactory.Create(selectedEqn, selectedParams, customParams);
     initialPosition = transform.position;
     TimeInit();
 }