relativeOffset property

Vector2 relativeOffset
inherited

Where in the screen the follow object should be.

This is a fractional value relating to the screen size. Changing this will smoothly move the camera to the new position (unless you use the followObject method that immediately sets up the camera for the new parameters).

Implementation

Vector2 get relativeOffset => _currentRelativeOffset;