animateTo method

void animateTo(
  1. Offset target
)

Animate toward target, preserving current per-axis velocity.

Implementation

void animateTo(Offset target) {
  _targetX = target.dx;
  _targetY = target.dy;
  _startSims(fromVx: _velocityX, fromVy: _velocityY);
}