Looking At A Position
An audience filter. Everything nested inside it is shown only while the player is looking at a given position — close enough, and within a given angle of their gaze.
Useful for showing something exactly when a player turns towards it: a name over a landmark, a hint on a machine, a prompt on a door.
Configuration
| Field | What it does |
|---|---|
target | The position to look at. |
maxAngle | How far off the centre of the screen it may be, in degrees. |
maxDistance | How far away the player may stand. |
refreshTicks | How often the gaze is re-read. |
inverted | Show the children while the player is not looking instead. |
refreshTicks trades responsiveness against cost: every tick is immediate and the most expensive,
every four ticks is imperceptible in practice and four times cheaper.