Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

useViewTarget

useViewTarget(): Entity | undefined

What this side’s player’s camera follows: her character, her kart, the player she watches. Undefined where her view target is none, so the scene’s camera draws, and before she joins. Read again as the room changes it, so a speedometer shows over the kart the camera follows.

Entity | undefined