Skip to content

ScreenFollowTarget

ScreenFollowTarget = Entity | Vec2Like | (() => Vec2Like)

Defined in: renderer/src/ScreenFollow.ts:11

What the follow tracks each frame. An Entity reads the entity’s current worldPosition; a Vec2Like is a fixed world coord; a function is called every frame and may compute any world coord (e.g. the midpoint of two entities, a position along an animated path).