update method
void
update(
- 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.0005 && q1.angleTo( q2 ) < 0.0005) {
animating = false;
}
}