five-on-it / apps/client/src/renderer/occluders / OccluderTracker
Interface: OccluderTracker
Defined in: apps/client/src/renderer/occluders.ts:213
Which buildings fade now, and for how long each stays faded.
Properties
candidates
readonlycandidates: readonlyOccluder[]
Defined in: apps/client/src/renderer/occluders.ts:221
The candidates.
Methods
update()
update(
now,camera,car):ReadonlySet<number>
Defined in: apps/client/src/renderer/occluders.ts:219
Casts the rays from the camera to the car (none on foot: then only a building holding the camera's eye fades), now in seconds: returns the indices (into the candidates) of the buildings faded now.
Parameters
now
number
camera
car
CarAim | undefined
Returns
ReadonlySet<number>