update method

void update(
  1. dynamic delta
)

Implementation

void update( delta ) {
  final step = delta * turnRate;

  q1.rotateTowards( q2, step );
  camera.position.setValues( 0, 0, 1 ).applyQuaternion( q1 ).scale( radius ).add( center );
  camera.quaternion.rotateTowards( targetQuaternion, step );

  if ( q1.angleTo( q2 ) == 0 ) {
    animating = false;
  }
}