readLocalCharacter
readLocalCharacter(
world):Entity|undefined
The character this side’s player controls: the one under the client’s authority, which the player’s page predicts, the player’s own character first, then a character with its pose before a kart or a drone the player controls beside it. On a world with no player, as a harness that spawns the character bare has, the first controllable entity where none is under the client’s authority. A room’s own world holds every player and steers none, so it reads none.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
Returns
Section titled “Returns”Entity | undefined