Senses the light intensity at the position of the sensor in the environment. It uses a cached light map to compute the field of light and samples it at the sensor's position.
Senses the light intensity at the position of the sensor in the environment. It uses a cached light map to compute the field of light and samples it at the sensor's position.
Value parameters
entity
the dynamic entity that the sensor is attached to.
env
the environment in which the sensor operates.
Attributes
Returns
a monadic effect containing the light intensity sensed by the sensor.