followCenter

fun followCenter(sprite: Sprite2D)

Updates the camera to follow the sprite's center position directly.

Parameters

sprite

The sprite to follow