useViewTarget
useViewTarget():
Entity|undefined
What this side’s player’s camera follows: the player’s character, the player’s kart, the other player being watched. Undefined where the player’s view target is none, so the scene’s camera draws, and before the player joins. Read again as the room changes it, so a speedometer shows over the kart the camera follows.
Returns
Section titled “Returns”Entity | undefined