onTick abstract method
Called when the node is ticked. This is where you should update your node.
The return value is how long to wait until the next tick.
If you return a duration of 0, the node will be ticked as fast as possible.
You are provided time
which is the current time milliseconds
delta
which is the time since the last tick started in milliseconds
and ticks
which is the number of ticks that have passed. First tick is 0.
Implementation
Future<Duration> onTick(double time, double delta, int ticks);