translateBy method

void translateBy(
  1. Vector2 displacement
)
inherited

Moves the camera by a given displacement (delta). This is the same as moveTo but instead of providing an absolute end position, you can provide a desired translation vector.

Implementation

void translateBy(Vector2 displacement) {
  moveTo(absoluteTarget() + displacement);
}