What a prefab, a spawn and an <Entity> take to set how an entity is
sent.
| Property |
Type |
Default value |
Description |
farDistance? |
number |
undefined |
The distance in metres past which a page receives its pose at farSendsPerSecond: from the nearest entity the page’s player controls or views to its bounds, as interest measures it. A page takes the far rate a fifth past it and the near rate again within it, at the entity’s next far send. Set with farSendsPerSecond. |
farSendsPerSecond? |
number |
sendsPerSecond |
How many times a second a room sends its pose to a page that stands past farDistance from it, where that is fewer than sendsPerSecond: its place and its velocity alone, which the page draws over the longer interval, that much later. Every other trait keeps sendsPerSecond. A room rounds it to a whole number of the entity’s own sends. 4 at the least, and set with farDistance. It takes effect in a room that culls by interest, and a room that does not says so in development. |
positionPrecision? |
number |
0.01 |
The step its position is rounded to as it is sent, in metres: it travels as the nearest multiple, so a move that stays within one step sends nothing. A multiple of 0.0001. Keep it below the distance it moves between two sends, or it is drawn stopping and starting. Its rotation and scale travel at 0.001. |
sendsPerSecond? |
number |
the room’s sendsPerSecond |
How many times a second a room sends its changes, where the room’s own rate is higher: a zombie at 20 in a room at 60 goes on every third send, and each page draws its move over that interval, one interval late. The room rounds it to a whole number of its own sends and, in development, says which rate it used. Its spawn and its removal go at once whatever the rate. So do a teleport, an event emitted on it and a change of who sees it, each with what it held back. A trait only its owner receives travels at the room’s rate. 4 at the least. An entity a player controls keeps the room’s rate, or the player’s input shows late. |