followVector2 method
void
followVector2(})
Immediately snaps the camera to start following vector2
.
This means that the camera will move so that the position vector is in a
fixed position on the screen.
That position is determined by a fraction of screen size defined by
relativeOffset
(default to the center).
worldBounds
can be optionally set to add boundaries to how far the
camera is allowed to move.
Implementation
@override
void followVector2(
Vector2 vector2, {
Anchor relativeOffset = Anchor.center,
Rect? worldBounds,
}) {
print('followVector2 method not work in Bonfire.');
}