mgvez / jsorrery

WebGL Solar System & orbital mechanics simulator
MIT License
412 stars 111 forks source link

Why it does not affect to any value with new jsorrery object? #14

Open nijatmursali opened 3 years ago

nijatmursali commented 3 years ago

Hello,

I'm trying to add new animate(speed) function in JSOrrery.js file to call the function from console by creating new jsorrery object, but it does not trigger the value from the class.

My code:

    animate(speed) {
        this.ticker.secondsPerTick = speed;
        this.ticker.setSecondsPerTick(speed);
    }

this has to change the speed of animation, but it does not do anything. Do you know why?