moveTo method

void moveTo(
  1. Vector2 position
)
inherited

Applies an ad-hoc movement to the camera towards the target, bypassing follow. Once it arrives the camera will not move until resetMovement is called.

The camera will be smoothly transitioned to this position. This will replace any previous targets.

Implementation

void moveTo(Vector2 position) {
  _currentCameraDelta = _position + _screenDelta();
  _targetCameraDelta = position.clone();
}