Skip to content

FollowTarget

FollowTarget = Entity | Transform | Vec2Like | (() => Vec2Like)

Defined in: renderer/src/FollowTarget.ts:12

What a follow tracks each frame, always in world coordinates. An Entity or a Transform reads the current worldPosition, so a target parented under a moving platform tracks where it actually is on screen; a Vec2Like is a fixed world coord; a function is called every frame and may compute any world coord (the midpoint of two entities, a position along a path).