Added the angle
property to DetectionMode
that controls whether the mode is limited to the vision angle
#8482
Labels
api
Issues related to the API used by Mod Devs
data-models
Issues related to data models and schema changes
vision
Issues related to Token vision and vision modes
Milestone
User Experience
The name of
DetectionMode#walls
suggests that the LOS check performed by_testLOS
is strictly wall-based. But the LOS polygon may be constrained either by the Vision Angle or by a module that wants to limit the maximum range of light-based perception. Those constraints are unrelated to walls but are applied regardless to all detection modes withwalls: true
, because_testLOS
uses the LOS polygon. Detection modes withwalls: false
ignore the Vision Angle even though the angle is unrelated to walls.There should be a separate property that controls whether the mode is limited to the vision angle. A sense may be directional (limited to the vision angle) but ignore walls (example: x-ray vision). A sense may be omnidirectional (not limited to the vision angle) but restricted by walls (example: smell, hearing).
The text was updated successfully, but these errors were encountered: