Near Sensor

See also

See the Python reference of this logic brick in SCA_NearSensor.

A Near Sensor detects objects that move to within a specific distance of themselves. It can filter objects with properties, like the Collision sensor.

Note

  • Near sensor can detect objects “through” other objects (walls etc.).

  • Objects must have Physics “Actor” property enabled to be detected.

Note

Near sensor cannot detect soft bodies. This is a limitation in Bullet, the physics library used by the Game Engine.

../../../../_images/logic-sensors-types-near-near.png

Near sensor

Properties

See Sensor Common Options for common options.

Property

This field can be used to limit the sensor to look for only those objects with this property.

Distance

The number of Blender units it will detect objects within.

Reset

The distance the object needs to be to reset the sensor (send a FALSE pulse).

Example