This sensor emulates an infrared range scanner, by generating a series of rays in predefined directions, and then computing whether they find any object within a certain distance of the sensor’s origin.
Note
Objects in the scene with the No collision setting in their Game properties will not be detected by this sensor
This sensor can also be added directly from a Builder API script, without requiring a Blender file. Yo do this by adding these lines into your script:
infrared = morse.builder.sensors.Infrared()
The logic of this sensor is based on the SICK laser range scanner.