follow property

Vector2? follow
getter/setter pairinherited

If set, the camera will "follow" this vector, making sure that this vector is always rendered in a fixed position in the screen, by immediately moving the camera to "focus" on the where the vector is.

You might want to set it to the player component by using the followComponent method. Note that this is not smooth because the movement of the followed vector is assumed to be smooth.

Implementation

Vector2? follow;